I have the code below, and by all my knowledge it should work, but it doesn't. Does anyone have any help that could get this worked out for me.
Code:
<?
if (!isset($_GET['username'])) {
$email_to = "cris@cris-griffith.com";
$email_to_name = "Casper";
header("Location: http://eastcoastassassins.com/email/index.php?username=$email_to_name&useremail=$email_to");
} else {
$username = $_GET['username'];
$useremail = $_GET['useremail'];
$to = $useremail;
$date = date("F");
$subject = "SOCOM 3 Newsletter for $date";
$message = "
<html>
<head>
<title></title>
</head>
<body>
<font style=\"font-family:tahoma, arial, verdana;font-size:10pt\">$username,
Thank you for subscribing.</p>
Best Regards,</p>
The Management Team
http://www.eastcoastassassins.com
</font>
</body>
</html>";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Newsletter Bot <newsletter@eastcoastassassins.com>\r\n";
mail($to, $subject, $message, $headers);
}
?>
This is what the email looks like when I get it.
Code:
Content-type: text/html; charset=iso-8859-1
From: Newsletter Bot <newsletter@eastcoastassassins.com>
<html>
<head>
<title></title>
</head>
<body>
<font style="font-family:tahoma, arial, verdana;font-size:10pt">Casper,
Thank you for subscribing.</p>
Best Regards,</p>
The Management Team
http://www.eastcoastassassins.com
</font>
</body>
</html>