|
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
[Back to original message]
|