Problems with sending a multipart/alternative email with PHP
- by saturdayplace
Here's the script that's builds/sends the email:
$boundary = md5(date('U'));
$to = $email;
$subject = "My Subject";
$headers = "From: myaddress@mydomain.com" . "\r\n".
"X-Mailer: PHP/".phpversion() ."\r\n".
"MIME-Version: 1.0" . "\r\n".
"Content-Type: multipart/alternative; boundary=--$boundary". "\r\n".
…