Page 1 of 1

Trying to send a html email - not working

Posted: Wed Dec 24, 2003 4:30 am
by doggy
<?php
$to = "email@youremai.com";
$subject = "sub";
$from = "Atlas";
$msg = "<body bgcolor=\"#D6E2F5\" text=\"#000099\" link=\"#000099\" vlink=\"#000099\" alink=\"#000099\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">"
."<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
."<tr> "
."<td height=\"91\" colspan=\"2\" valign=\"top\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"../../../../FoxServ/www/Atlas-web/images/ban-1.gif\">"
."<tr> "
."<td width=\"519\" height=\"91\">&nbsp;</td>"
."<td width=\"267\" valign=\"top\"><div align=\"right\"><img src=\"../../../../FoxServ/www/Atlas-web/images/xmas-logo.gif\" width=\"301\" height=\"91\"></div></td>"
."</tr>"
."</table></td>"
."</tr>"
."<tr> "
."<td width=\"1\" height=\"19\">&nbsp;</td>"
."<td width=\"100%\">&nbsp;</td>"
."</tr><tr>"
."<td height=\"350\">&nbsp;</td>"
."<td valign=\"top\"><div align=\"center\"> "
."<p>hello</p>"
."</div></td>"
."</tr>"
."</table>";
mail($to, $subject, $msg, "From: $from\nX-Mailer: PHP/" . phpversion());

?>

Posted: Wed Dec 24, 2003 4:39 am
by volka
you're right. That doesn't work.
Is there any question related to this post?

Posted: Wed Dec 24, 2003 6:48 am
by aquila125
phpmailer is your friend

Posted: Wed Dec 24, 2003 7:43 am
by m3mn0n