I have a PHP system that sends auto-generated emails to subscribers of my service. The HTML is all valid, and there is an absolute reference to my css file. In the HTML below I have obfuscated and changed actual paths and info, but it is all valid. When I view the HTML in a browser it looks perfect. When I receive the email, it's clear that the CSS is not being invoked BUT as soon as I hit reply, the CSS gets invoked and everything looks correct.
Why is it that the CSS doesn't get invoked until I hit reply? How can I fix this?
PHP is generating the email and the full email source is below:
Return-path: <stuff@box123.bluehost.com>
Envelope-to: x@z.com
Delivery-date: Mon, 24 Feb 2014 00:00:15 -0700
Received: from localhost ([127.0.0.1]:56865 helo=box123.bluehost.com)
by box123.bluehost.com with esmtp (Exim 4.80)
(envelope-from <stuff@box123.bluehost.com>)
id 1WHpWR-000752-1x; Mon, 24 Feb 2014 00:00:15 -0700
Date: Mon, 24 Feb 2014 00:00:12 -0700
To: a@b.com,x@z.com
Subject: mysystem Reminder - You have upcoming games
X-PHP-Originating-Script: 1859:Functions.php
From: stuff@box123.bluehost.com
Reply-To: no-reply@mysystem.com
X-Mailer: PHP/5.4.24
Content-type: text/html
X-Identified-User: {:box123.bluehost.com:stuff:otherstuff.com} {sentby:program running on server}
<html><head><link href='http://www.mysystem.com/Style.css' rel='stylesheet' type='text/css' /></head>
<body><table cellpadding="10" cellspacing="0" border="1" class="BasicGray" style="margin-left:3px">
<tr class="BlueTop">
<td align="center"><b></b></td>
</tr>
<tr>
<td>
<table>
<tr>
<td>Referee:</td>
<td>Jim Jones</td>
</tr>
<tr>
<td>Game:</td>
<td>Youngblood Elite</td>
</tr>
<tr>
<td>Date:</td>
<td>Friday, February 28, 2014 - 5:00 PM</td>
</tr>
<tr>
<td>Location:</td>
<td>XYZ Academy High School | Court #2 | 123 S 560 W Bluffdale</td>
</tr>
<tr>
<td>Partner(s): </td>
<td><a href='mailto:somebody@gmail.com'>Anthony Walker</a> - (801) 555-5555</td>
</tr>
<tr>
<td>Schedule ID#: </td>
<td>2114</td>
</tr>
</table>
</tr>
</table>
</table>
<br><br>
<a href='http://www.mysystem.com/Login.php'>View/Edit your schedule online</a><br><br> To <b>unsubscribe</b> from these email reminders, <a href='http://www.mysystem.com/Login.php'>log in</a> to your mysystem account and click on <i>Profile</i>.<br><br><br>
</body></html>