What would cause hotmail to forward to gmail in plain text?
I am currently using PHP's mail function to send HTML-formatted mail. A user of mine emailed me to say that when forwarded from Hotmail to Gmail, it causes the email to go into plain text. Any idea what might cause that?
I am simply sending the mail like this:
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: GamingOnLinux.com Notification <noreply@gamingonlinux.com>\r\n" . "Reply-To: noreply@gamingonlinux.com\r\n";
// Mail it
mail($to, $subject, $message, $headers);
Here's an example of the content:
// message
$message = "
<html>
<head>
<title>New reply to an article you follow on GamingOnLinux.com</title>
</head>
<body>
<img src=\"{$config['website_url']}/randomlogo.php\" alt=\"Gaming On Linux\">
<br />
<p>Hello <strong>{$email_user['username']}</strong>,</p>
<p><strong>{$username}</strong> has replied to an article you follow on titled \"<strong><a href=\"{$config['website_url']}/articles/$title_nice.$article_id#comments\">{$title['title']}</a></strong>\".</p>
<div>
<hr>
{$comment}
<hr>
You can unsubscribe from this article by <a href=\"{$config['website_url']}/index.php?module=articles_full&go=unsubscribe&article_id={$article_id}\">clicking here</a>, you can manage your subscriptions anytime in your <a href=\"{$config['website_url']}/usercp.php\">User Control Panel</a>.
<hr>
<p>If you haven't registered at <a href=\"{$config['website_url']}\" target=\"_blank\">{$config['website_url']}</a>, Forward this mail to <a href=\mailto:liamdawe@gmail.com\ target=\"_blank\">liamdawe@gmail.com</a> with some info about what you want us to do about it or if you logged in and found no message let us know!</p>
<p>Please, Don't reply to this automated message, We do not read any mails recieved on this email address.</p>
</div>
</body>
</html>
";
It ends up like this on his gmail account
---------- Forwarded message ----------
From: <email hidden>
Date: 2013/5/19
Subject: subject
To: email hidden
Content-type: text/html; charset=iso-8859-1
From: GamingOnLinux.com Notification noreply@gamingonlinux.com
Reply-To: noreply@gamingonlinux.com
Message-Id: 20130519092853.0B5482900130@server.prxa.info
Date: Sun, 19 May 2013 09:28:52 +0000 (UTC)
Return-Path: gamingonlinux@server.prxa.info
X-OriginalArrivalTime: 19 May 2013 09:28:58.0300 (UTC) FILETIME=[4A30AFC0:01CE5473]
<html>
<head>
<title>New reply to an article you follow on GamingOnLinux.com</title>
</head>
<body>
<img src=http://www.gamingonlinux.com/randomlogo.php alt="Gaming On Linux">
<br />
<p>Hello <strong>username</strong>,</p>
<p><strong>muntdefems</strong> has replied to an article you follow on titled "<strong><a href="http://www.gamingonlinux.com/articles/humble-double-fine-bundle-launches-we-were-ri
I am currently using PHP's mail function to send HTML-formatted mail. A user of mine emailed me to say that when forwarded from Hotmail to Gmail, it causes the email to go into plain text. Any idea what might cause that?
I am simply sending the mail like this:
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: GamingOnLinux.com Notification <noreply@gamingonlinux.com>\r\n" . "Reply-To: noreply@gamingonlinux.com\r\n";
// Mail it
mail($to, $subject, $message, $headers);
Here's an example of the content:
// message
$message = "
<html>
<head>
<title>New reply to an article you follow on GamingOnLinux.com</title>
</head>
<body>
<img src=\"{$config['website_url']}/randomlogo.php\" alt=\"Gaming On Linux\">
<br />
<p>Hello <strong>{$email_user['username']}</strong>,</p>
<p><strong>{$username}</strong> has replied to an article you follow on titled \"<strong><a href=\"{$config['website_url']}/articles/$title_nice.$article_id#comments\">{$title['title']}</a></strong>\".</p>
<div>
<hr>
{$comment}
<hr>
You can unsubscribe from this article by <a href=\"{$config['website_url']}/index.php?module=articles_full&go=unsubscribe&article_id={$article_id}\">clicking here</a>, you can manage your subscriptions anytime in your <a href=\"{$config['website_url']}/usercp.php\">User Control Panel</a>.
<hr>
<p>If you haven't registered at <a href=\"{$config['website_url']}\" target=\"_blank\">{$config['website_url']}</a>, Forward this mail to <a href=\mailto:liamdawe@gmail.com\ target=\"_blank\">liamdawe@gmail.com</a> with some info about what you want us to do about it or if you logged in and found no message let us know!</p>
<p>Please, Don't reply to this automated message, We do not read any mails recieved on this email address.</p>
</div>
</body>
</html>
";
It ends up like this on his gmail account
---------- Forwarded message ----------
From: <email hidden>
Date: 2013/5/19
Subject: subject
To: email hidden
Content-type: text/html; charset=iso-8859-1
From: GamingOnLinux.com Notification noreply@gamingonlinux.com
Reply-To: noreply@gamingonlinux.com
Message-Id: 20130519092853.0B5482900130@server.prxa.info
Date: Sun, 19 May 2013 09:28:52 +0000 (UTC)
Return-Path: gamingonlinux@server.prxa.info
X-OriginalArrivalTime: 19 May 2013 09:28:58.0300 (UTC) FILETIME=[4A30AFC0:01CE5473]
<html>
<head>
<title>New reply to an article you follow on GamingOnLinux.com</title>
</head>
<body>
<img src=http://www.gamingonlinux.com/randomlogo.php alt="Gaming On Linux">
<br />
<p>Hello <strong>username</strong>,</p>
<p><strong>muntdefems</strong> has replied to an article you follow on titled "<strong><a href="http://www.gamingonlinux.com/articles/humble-double-fine-bundle-launches-we-were-ri
No comments:
Post a Comment