mattisthenation Posted November 10, 2008 Share Posted November 10, 2008 Good Morning, I am having a problem with sending an email through my contact form. It is a script that I have used a number of times and never had a problem. The difference this time is that the email address I am using is formatted as follows: "[email protected]" notice the "." and the "-" Would this cause a problem for the mail() function? Thanks for any help Link to comment https://forums.phpfreaks.com/topic/132149-mail-email-address-send-to-formatting/ Share on other sites More sharing options...
premiso Posted November 10, 2008 Share Posted November 10, 2008 That should not cause a problem at all. Without any code we would not be able to diagnose the actual problem. Suggestion, post the code. Link to comment https://forums.phpfreaks.com/topic/132149-mail-email-address-send-to-formatting/#findComment-686792 Share on other sites More sharing options...
mattisthenation Posted November 10, 2008 Author Share Posted November 10, 2008 Here is the code: $send_to = "[email protected]"; @ini_set('sendmail_from', $sender_email); $send_status = mail($send_to, $email_subject, $msg, $headers); @ini_restore('sendmail_from'); ($email_subject, $msg and $headers are set else where) This works fine if I use an email address like "[email protected]" Link to comment https://forums.phpfreaks.com/topic/132149-mail-email-address-send-to-formatting/#findComment-686798 Share on other sites More sharing options...
premiso Posted November 10, 2008 Share Posted November 10, 2008 What is housed in the $headers? Doing some research http://bugs.php.net/bug.php?id=14981 It was reported as an issue but ruled off as your mail server could be setup wrong to not allow that. I would check with your host and make an inquiry about it. Link to comment https://forums.phpfreaks.com/topic/132149-mail-email-address-send-to-formatting/#findComment-686807 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.