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: test@mywebsite.net' . "\r\n" . 'Reply-To: test@mywebsite.net' . "\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; Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/266921-send-mail-not-working/#findComment-1368451 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.