mallen Posted August 10, 2012 Share Posted August 10, 2012 I am having trouble getting my form to send email. The script works and form is ok but I think its a formatting issue. Or maybe a header I am missing because it will send to some email addresses but one it will not. Its a Linux server. I don't get a bounce back message. Just goes nowhere. Then I change the email address to another one and it works. $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); if(mail($to, "Contact Request From My website ", $msg, $headers)) header("Location:?page_id=7&m=ok"); else header("Location:?page_id=7&m=fail"); endif; Link to comment https://forums.phpfreaks.com/topic/266921-send-mail-not-working/ Share on other sites More sharing options...
mallen Posted August 10, 2012 Author Share Posted August 10, 2012 I figured it out. It is sending the mail OK. Its a mail server issue and I need to find a way to retrieve the mail in my mail box. I can see it on web mail. Link to comment https://forums.phpfreaks.com/topic/266921-send-mail-not-working/#findComment-1368451 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.