Hi there.
I’m having trouble with sending mail using a php form. I’ve made a form that will let people at my work send personalized html/css-formatted “brochure” emails to clients.
The form works and everything, but some clients complain that they haven’t received theirs (and it isn’t found in their spam folder either). This appears to happen consistently with certain mail providers and mail servers (including our own). I suspect it’s something to do with the server’s anti-spam procedures.
Does anyone know a way around this? There must be one, as while we aren’t able to receive these emails sent with this php script, I was still able to get, for example, the activation email sent from this forum, presumably through php.
I’ve included info on the ‘from’ variable of this form, in case there’s something in it which might be why we’re getting blocked.
[code]$from = "From: $formFromName <$formFromEmail>nReply-To: $formFromEmailnContent-Type: text/html; charset=“windows-1251"rnMIME-Version: 1.0”;
mail($formToEmail, $subject, $message, $from);
[/code]
Thanks for reading.