codenoobie Posted August 4, 2008 Author Share Posted August 4, 2008 Hi Blade, Thank you again for all of your help. DarkWater found a solution. Here is is: First of all, I added this (albeit rudimentary) check to the top just to make sure that the mail gets to where it has to go: if (!$_POST['Email']) { header('Location: index.html'); } Secondly, I set up the $headers variable, and used it as the 4th parameter of mail(): $headers = "From: T:B <ghsfiles@box394.bluehost.com>"; mail($email_field, $auto_respond_subject, $auto_respond_body, $headers); Quote Link to comment https://forums.phpfreaks.com/topic/118116-help-with-php-auto-response-form/page/2/#findComment-608077 Share on other sites More sharing options...
DarkWater Posted August 4, 2008 Share Posted August 4, 2008 Yeah, I'm not sure as to why it errored out. I went on and just uploaded the file with some small changes that shouldn't have really affected the error. o-O Meh. Quote Link to comment https://forums.phpfreaks.com/topic/118116-help-with-php-auto-response-form/page/2/#findComment-608079 Share on other sites More sharing options...
DeanWhitehouse Posted August 4, 2008 Share Posted August 4, 2008 yer i just saw, i agree with DW , i have been doin this a few months and never seen a syntax error for no reason. Quote Link to comment https://forums.phpfreaks.com/topic/118116-help-with-php-auto-response-form/page/2/#findComment-608081 Share on other sites More sharing options...
DarkWater Posted August 4, 2008 Share Posted August 4, 2008 Lol, I've been doing this for more than a few years and random syntax errors aren't all too common, and even when they appear they usually have a good reason. o_O Quote Link to comment https://forums.phpfreaks.com/topic/118116-help-with-php-auto-response-form/page/2/#findComment-608083 Share on other sites More sharing options...
codenoobie Posted August 4, 2008 Author Share Posted August 4, 2008 Well, you guys are both geniuses to me. Thank you both very much and have a great night - codenoobie Quote Link to comment https://forums.phpfreaks.com/topic/118116-help-with-php-auto-response-form/page/2/#findComment-608084 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.