PDA

View Full Version : HTML E-Mail


ZBomber
04-05-2005, 06:32 PM
Does anyone know how to send HTML E-Mails? I wanna be able to make tables and stuff I can send in E-Mail, does anyone know how I go about doing this?

Thanks

Joetheeskimo
04-05-2005, 09:53 PM
If the HTML is displayed, depends on what e-mail program is being used by the receiver. But anyway, if you mean in script form?...

<?php
$msg = stripslashes("<html>
<body>
<table border=0>
<tr>
<td>Dear Tom,
Don't forget to meet me at 19 o\'clock tomorrow at McDonald\'s.</td>
</tr>
</table>
</body>
</html>");

And the mail functions parameters (in this order) are To, Subject, Message, Headers:

mail(tom@yahoo.com, Yo, $msg, "From: zbomber@thelastchild.net"); // Or something
?>

ZBomber
04-05-2005, 11:06 PM
That might work, what I did though was make it in word and copy/paste it into GMail. :D But thanks, I'll use that next time I need to do it.