Hello, On 10/08/2002 05:26 PM, Chris Cook wrote: > Hello all, > > I am trying to send out a multi-part email that is both text and HTML. > The HTML is so I can embed links into the email. However, some of my > clients have text-only email programs and all the HTML tags are visible. > Is there a way that I can display HTML in the HTML enabled programs and > text in the text-only email programs? > > This is the header that I currently use. > > $headers = "MIME-Version: 1.0\r\n"; > $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
Either you send separate messages to the users that prefer each format or you send multipart alternative messages that contain both versions. Anyway, even when users prefer HTML you should send multipart alternative because some SPAM filters reject HTML only messages. In any case you may want to try this class that is able to compose and send multipart alternative messages even with attachments or images embeded in the HTML. http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php