Trying to send a html email - not working
Posted: Wed Dec 24, 2003 4:30 am
<?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\"> </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\"> </td>"
."<td width=\"100%\"> </td>"
."</tr><tr>"
."<td height=\"350\"> </td>"
."<td valign=\"top\"><div align=\"center\"> "
."<p>hello</p>"
."</div></td>"
."</tr>"
."</table>";
mail($to, $subject, $msg, "From: $from\nX-Mailer: PHP/" . phpversion());
?>
$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\"> </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\"> </td>"
."<td width=\"100%\"> </td>"
."</tr><tr>"
."<td height=\"350\"> </td>"
."<td valign=\"top\"><div align=\"center\"> "
."<p>hello</p>"
."</div></td>"
."</tr>"
."</table>";
mail($to, $subject, $msg, "From: $from\nX-Mailer: PHP/" . phpversion());
?>