Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Programming
Reload this Page PHP Contact Script no longer working
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
Junior Member
omanoct is on a distinguished road
 
Posts: 24
Join Date: May 2010
Exclamation PHP Contact Script no longer working - 09-15-2010, 10:30 PM

Hya!

OK, I have a headache now from being unable to fix a simple problem. I was building a Contact page where users fill out a simple form which is sent via PHP. It WAS working. I sent the messages 3 or 4 times before they suddenly ceased to arrive in my inbox. I have scoured the script to find anything I may have erased by mistake but can find Nothing wrong with it. Here is the code...

PHP Code:
<?php

$Name 
"Challenge Poll Result";
$email "noreply@lts-polling-page.com";
$recipient "omanoct@mail.com";

$mail_body "Message received from LT's Stock Challenges Polling Page.\r\n\r\n----------\r\n\r\n From: " $_POST['deviant_name'] . "\r\n\r\n Did you enjoy this Challenge: " $_POST['RESULT_RadioButton-3'] . "\r\n\r\n Comments...\r\n" $_POST['RESULT_TextArea-8'] . "\r\n\r\n Vote: " $_POST['RESULT_RadioButton-5-0'];

$subject 'Homepage Contact Message';
$header "From: "$Name " <" $email ">\r\n";

mail($recipient$subject$mail_body$header);

?>
Did I miss something?

Thanks in advance
Dan
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Junior Member
flips22738 is on a distinguished road
 
Posts: 7
Join Date: Nov 2010
Default 11-27-2010, 04:12 PM

That looks right, the only thing I would include is applying wordwrap to $mail_body like this.
PHP Code:
$mail_body wordwrap($mail_body70); 
But otherwise it looks like I do it, and I have not experienced any problems yet. I say yet because it seems that quite a few folks are having issues with PHP's mail function as of late. I saw in one thread that a response from the help desk mentioned that with the volume of email coming out of the free servers, some email services seem to block them as though they (the servers) are spam bots or something.
Reply With Quote
(#3 (permalink))
Old
Junior Member
omanoct is on a distinguished road
 
Posts: 24
Join Date: May 2010
Default 11-28-2010, 11:39 PM

I've never used that syntax before, so can I assume it makes long lines of text wrap?

Hmm...yes I've had that issue with one of my other sites... I think its mostly during the texting phase - I sent out a number of text emails to the same address to make sure the script was working properly (or rather, to get it working...), and the server began blocking the script. Re had to use a redirect to get it working again. Frustrating, but in a way, very understandable

Thanks
Dan
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com