craigglenn
Technical User
NEW TO PHP
I am having a problem sending an notification email once a form is submitted on my Wordpress blog hosted on GoDaddy. Just a simple contact form.
In the beginning I was getting my email delivered but it was very slow, 15 mins to and hour and not it just never shows up.
I have tried various code settings but here is where I am now. I don't get it delivered, but based on test scripts I found here It says the message is being handed over to the MTA without errors.
Here is my code...
$to = "test1@yahoo.com";
$subject = "New Comment on domain1.com";
$message = "From: ".$_name."\n"."eMail: ".$_email."\n".$_comment;
$headers = 'From: test2@domain1.com' . "\n" .
'Reply-To: test2@domain1.com'. "\n" . 'X-Mailer: PHP/';
mail($to,$subject,$message,$headers);
Sorry if I left any important details out, please let me know if you need additional information. Thanks for your help.
Craig
"You can have anything in life you want if you help enough people get what they want"
Zig Ziggler
I am having a problem sending an notification email once a form is submitted on my Wordpress blog hosted on GoDaddy. Just a simple contact form.
In the beginning I was getting my email delivered but it was very slow, 15 mins to and hour and not it just never shows up.
I have tried various code settings but here is where I am now. I don't get it delivered, but based on test scripts I found here It says the message is being handed over to the MTA without errors.
Here is my code...
$to = "test1@yahoo.com";
$subject = "New Comment on domain1.com";
$message = "From: ".$_name."\n"."eMail: ".$_email."\n".$_comment;
$headers = 'From: test2@domain1.com' . "\n" .
'Reply-To: test2@domain1.com'. "\n" . 'X-Mailer: PHP/';
mail($to,$subject,$message,$headers);
Sorry if I left any important details out, please let me know if you need additional information. Thanks for your help.
Craig
"You can have anything in life you want if you help enough people get what they want"
Zig Ziggler