Hi I am working on a site for a client in the US. I have a simple mail(); query that sends out the activation e-mail. When she signs up in the US it works fine but I have tried my btinternet, hotmail and my work account and it doesn't work here. What is that about then?? Here is the mail() request. $sendmail = mail($email, 'Promoteproxy.com - Helpdesk Request', 'You have recieved the following helpdesk query<br /><br /><b>Name</b> - '.$name.'<br /><br /><b>Email Addy</b> - '.$useremail.'<br /><br ><b>Subject</b> - '.$subject.'<br /><br /><b>Query</b><br /><br />'.$query.'<br /><br />Thanks', "From: noreply@promoteproxy.com <noreply@promoteproxy.com>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"); PHP:
Yeah, lol, or try putting each section (email, message, subject, etc.) into a variable and then inserting it into the mail() function.
firstly, check whether your sendmail binary is located correctly on your php.ini. then do as jmhyer123 says. then you might wanna use single quote `'` instead of `"` on the additional header setting.
The quotes are not the problem either, the problem lays in the headers. Hotmail moves all mails that don't have certain headers into the junk section. All providers have a different way of handling the mails and headers, that's why I suggest using phpmailer since it covers everything, and it's the best and easiest method to send mails successfully.