I used both notepad and crimson editor and both said cannot find 'class=x125' as the search result.
Excel, when saved as web, places tons of useless html tags. And that's why I only copied the section which starts with
<!--START OF OUTPUT FROM EXCEL PUBLISH AS WEB PAGE WIZARD -->
and ended where this appeared
<!--END OF OUTPUT FROM EXCEL PUBLISH AS WEB PAGE WIZARD-->
Where anything in between these two remarks were nothing but TABLE, TD, TR html tags.
I created form version on my own. This form has process.php as application to execute. The process.php then compiles POST variables and sends it as php mail() where
mail($to, $from, $subject, $body, $header)
I used Excel to create $body by saving Excel as HTML and inserting POST variables to locations I desired.
Attached is an example of Excel saved as web. Use this file to replace all class=x125 to style="border-bottom:thin solid #000000;"
Thanks guys. Much appreciated. And I'll try code editor to replace strings.
[attachment=1640:Page.htm]
UPDATE::
It's official, numerous sources point to the same solution--inline style
QUOTE
Wonder why the HTML based email sent out by your PHP script will NOT display properly in GMail? GMail will strip all the CSS that is included in between the <style></style> tag pair (internal stylesheet) or the external style sheet included, such as
<link rel=”stylesheet” type=”text/css” href=”http://mycss.com/my.css” />.
In order to make your HTML or web-based email to properly display in GMail, you must use inline CSS, inside the HTML element , such as <div style=”font-size:8pt;padding:2px;margin:2px;”></div>
ajaxapps.comand
QUOTE
One of the core recommendations we are proposing is support for embedded CSS in the head. While support for inline CSS is probably better than nothing, it isn't a solid alternative for true, standards-based support. Therefore, because of our recommendation, our acid test does not include inline CSS. Gmail does not support CSS unless it is inline. Consequently not a single item from our list is supported, nor is anything else. But even if Gmail supported embedded styles in the head of a document, it strips all IDs and classes from the source. So we would like to see Google remedy both of these ailments concurrently.
email-standards.orgit could be a nice project for Trap17 code masters...

Comment/Reply (w/o sign-up)