Hi everyone,
I am creating a type of feedback mail for the clients at my website. from tips and hints found other places at this forum I have managed to attache a zip-file to this mail. What I really don't understand is why I am not able to create a html-body for this mail.
The mail-headers look like this:
$headers = "From: <from@from.com>\r\n";
$headers .= "To: ".$Mail."\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\";\r\n\r\n";
$headers .= "This is an MIME encoded message.\r\n";
$headers .= "--$boundary\r\n";
$headers .= "Content-Type: text/html\r\n\r\n";
$headers .= "--$boundary\r\n";
$headers .= "Content-Type: application/zip; name=".$deliveryfile."\r\n";
$headers .= "Content-Length: " . strlen($attachement) . "\r\n";
$headers .= "Content-Transfer-Encoding: base64\r\n";
$headers .= "Content-Dispostition: attachment\r\n\r\n";
$headers .= $attachement;
$headers .= "--$boundary--";
I someone knows what changes I can make here in order to create a html body to my mail I would be really happy. 🙂