Jump to content

send mail not working


mallen

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.