You are here: Re: how to send a plain text version of an email with html « PHP Programming Language « IT news, forums, messages
Re: how to send a plain text version of an email with html

Posted by Chuck Anderson on 08/08/06 19:55

monomaniac21 wrote:
> hi all
>
> how can u send a plain text version of an email with the html so that
> the users mail client can access this plain text version?
>
> kind regards
>
> marc
>
>
Phpmailer makes this easy. You need to create both versions - HTML and
plain text and then ...

$mail->IsHTML(true); // set email format to HTML

$mail->Body = "$html_body"; // HTML version
$mail->AltBody = "$text_body"; // plain text version

Phpmailer is easy to find >> Gô¿ôgle

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*****************************

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация