Hi, I tried to get a script or something to send my e-mial in HTML format becasuse I want to add tables to line up certain text.
How do I get the e-mail to go from plain text to HTML?
Thanks
[PHP]
<?php
$con = mysql_connect(" ******","****** ","****");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}mysql_select_d b("total", $con);$result = mysql_query("SE LECT * FROM email");while($ row = mysql_fetch_arr ay($result))
{
$to = "$row[a1]";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@exa mple.com";
$headers = "From: $from";
mail($to,$subje ct,$message,$he aders);
echo "Mail Sent.";
}mysql_close($c on);
?>
[/PHP]
How do I get the e-mail to go from plain text to HTML?
Thanks
[PHP]
<?php
$con = mysql_connect(" ******","****** ","****");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}mysql_select_d b("total", $con);$result = mysql_query("SE LECT * FROM email");while($ row = mysql_fetch_arr ay($result))
{
$to = "$row[a1]";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@exa mple.com";
$headers = "From: $from";
mail($to,$subje ct,$message,$he aders);
echo "Mail Sent.";
}mysql_close($c on);
?>
[/PHP]
Comment