PHP mail() - Exchange 2003 doesn't receive email -
i have php mail() script sends html email contains embedded images.
the code this:
mail($to, $subject, $message, $headers);
the headers so:
mime-version: 1.0 content-type: multipart/mixed; boundary="--a9cf4407bac7d49ebd2d94af284cb0d8" from: myname <name@domain.co.uk> reply-to: name@domain.co.uk
the email delivers fine outlook.com , gmail.com addresses. i've tested when sent our office runs microsoft exchange 2003 email doesn't deliver. doesn't reach logs baffles me. exchange isn't blocking email, isn't receiving it.
is there known php / exchange 2003 conflict? or issue elsewhere?
i'm happy supply more code if needed.
you seem using php's native mail function. cumbersome configure , troubleshoot.
you may save lot of time looking phpmailer or swift mailer. these libraries maintained , fixed stay compatible exchange , other systems.
also, exchange may easier set email account on , let application use it.
Comments
Post a Comment