I have an email I'm sending out via PHP and it looks good in Outlook, but if it goes to a godaddy web based email client it shows all of the HTML formatting and does not show who its from (it shows these in Outlook). Other HTML emails show fine in the web based email client.
Any thoughts? Here is the code:
//build and send the email
$to = $email;
$subject = 'Confirm your subscription';
$message =( "<html>\r\n");
$message .=( "<head>\r\n");
$message .=( "<title>Confirm</title>\r\n");
$message .=( "</head>\r\n");
$message .=( "<body>\r\n");
$message .=( "<h2>Thank You for registering!</h2>\r\n");
$message .=( "<p>To complete your registration, please click the link below.</p>\r\n");
$message .=(" <p><a href=\"http://www.site.com/confirmation.php?confirm=$visitor_hash\">Click here to confirm your interest.</a></p>\r\n");
$message .=( "<p>Welcome! We're glad you're here!</p>\r\n");
$message .=( "</body>\r\n");
$message .=( "</html>\r\n");
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers .= "From: John Doe <info@site.com>\r\n";
mail($to, $subject, $message, $headers);
}
(I am going out of the country for a bit over a week, but will check and reply when I get back. Thanks!)