Hello,
I'm having a problem using the Mail() function to send email to Hotmail. No matter what I send, text/html or text/plain, Hotmail receives it as an attachment. I'm trying to allow my visitors to send HTML email with images displayed inline.
Here is my code:
<?php
echo "<body>";
$extra = "Mime-Version: 1.0\r\nContent-Type:text/html charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: 7bit\r\nFrom: Photo Mailer on $SERVER_NAME <$from>\r\nReply-to: $from\r\n";
$message ="<A HREF='http://www.garbunzl.34sp.com/images/cooltoes.jpg'><IMG SRC='http://www.garbunzl.34sp.com/images/Thumbnails/thumbcooltoes.jpg'></A>";
$message .="<BR><CENTER>----------------------------------------------<BR><A HREF='http://www.garbunzl.34sp.com'>Visit my site</A>";
mail ($to, $subject, $message, $extra);
echo "Sending mail...";
echo "</body>";
?>
This code works perfectly with Outlook and Outlook Express(displays inline), but Hotmail always receives it as an attachment.
Please HELP!!!