Re: new ways to add an html body?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux