Weirfire
Jan 16th 2006, 9:21 am
Basic question - how do I send an email with css formatting?
I've been trying to mail something along the lines of the example below;
$message = "<table width='450' style='background: green'>";
$message = "<tr><td style='color: #E0E0E0'>I'm green and slimey</td></tr>";
$message = "</table>";
mail($email, $subject, $message, $mailheaders);
It doesnt seem to do anything within the quotes e.g. width='450' or style='....'
Do I need to set up the type of email in the $message variable?
I've been trying to mail something along the lines of the example below;
$message = "<table width='450' style='background: green'>";
$message = "<tr><td style='color: #E0E0E0'>I'm green and slimey</td></tr>";
$message = "</table>";
mail($email, $subject, $message, $mailheaders);
It doesnt seem to do anything within the quotes e.g. width='450' or style='....'
Do I need to set up the type of email in the $message variable?