You are here: Re: [PHP] new ways to add an html body? « PHP « IT news, forums, messages
Re: [PHP] new ways to add an html body?

Posted by Silvio Porcellana on 09/25/05 20:55

Ross wrote:

>Hi,
>
>I am using php mailer and am trying to find a new way to make the html email
>body instead of the old
>
> $mail_body = " <tr><td width=\"314\"><div align=\"center\"><img
>src=\"my_logo3.gif\" width=\"100\" height=\"139\"></div></td></tr>";
> $mail_body .= "<BR><BR><BR><BR>";
> $mail_body .= "<font size=\"2\" face=\"Verdana, Arial, Helvetica,
>sans-serif\">$mail_text </font>";
> $mail_body .= "<BR><BR><BR><BR><BR>";
> $mail_body .= "<tr>
>
>Any good/innovative suggestions are welcome.
>
>
>
Not really innovative, but what about heredoc?

$mail_body = <<<EOT
<tr><td width="314"><div align="center"><img src="my_logo3.gif"
width="100" height="139"></div></td></tr>
....
<font size="2" face=\"Verdana, Arial, Helvetica, sans-serif">$mail_text
</font>
....
EOT;

http://php.net/types.string

HTH, cheers!
Silvio

 

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

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