[PHP] Re: HTML and text email

2002-10-08 Thread Manuel Lemos

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




[PHP] Re: HTML and text email

2002-10-08 Thread Owen Prime

My advice would be to set your mail program's preferences to send messages 
in text  html (you can do it in NS or Moz), send yourself a message with a 
link or bold or something to make it an html message, then view the source.

Cheers,

Owen Prime
http://www.noggin.com.au


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;
 
 Thanks for any help,
 Chris
 
 
 _
 Join the world’s largest e-mail service with MSN Hotmail.
 http://www.hotmail.com

-- 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php