Hi Dr Byte,
Sorry to wake up an old thread but i never solved it. I have finally managed to correct some host problems and now can send and receive using smtpauth. Although when emails are sent to gmail (one example, some work better than others) the formatting is still removed.
Am i right to believe that i'd never be able to correct this due to gmail being the problematic factor?
Although as i have mentioned previously, sending an email from a contact form based within my main website, gmail formats the email perfectly and thats using php mail function. It seems strange i'm not able to obtain a similar result using php mail function or any other method i have available to me, within zen-cart. I must be formatting the template incorrectly or something...
The following is a copy of the email source code (once sent) to and opened from gmail:
HTML Code:
<div>
<div>
<img src="http://www.website.com/images/emails/header.jpg" alt="Website Logo">
</div>
<div>
<div>Dear BottyZ
</div>
<div>We wish to welcome you to our online shop.</div>
<div>You have successfully registered and now have access to our secure online shopping area. This facility will allow you to shop, view details of completed orders and even add items to your online cart, which will remain there until you remove them or check out</div>
<div>For help with any of our online services, or advice on your Lighthouse products, please email: <a href="mailto:[email protected]" target="_blank">[email protected] </a>
<br><br>
Sincerely,<br>
<br>
Website Customer Support Team<br>
<br>
<a href="http://www.website.com/shop/" target="_blank">http://www.website.com/<wbr>shop/</a><br>
<br>
</div>
</div>
<br>
<div>
<div>This email address was given to us by you or by one of our customers. If you did not signup for an account, or feel that you have received this email in error, please send an email to <a href="mailto:[email protected]" target="_blank">[email protected] </a>
</div>
<br>
<br>
</div>
<div><img src="http://www.website.com/images/emails/emailfooter.png"></div>
</div>
Whereas the email html template looks like:
HTML Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$CHARSET" />
<base href="$BASE_HREF" />
<style type="text/css">
body {background-color:#000000; color:#ffffff; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center;}
a:link {color:#ffffff; font-weight: bold;}
a:hover {color:#424242;}
a:visited {color:#ffffff; font-weight: bold;}
.holder {background-color:#000000; border:1px solid #ffffff; font-size:9px; text-align:left; width:779px; margin: auto;}
.header {font-size:10px; padding:0px; width:779px;}
.content {font-size:10px; padding:5px; width:769px;}
.footer {padding:0; text-align:center; margin: auto; width:779px;}
.content-line {padding:5px; font-size:10px;}
.coupon-block { padding: 5px; border: 1px solid #61d0fe; background-color: #424242; }
.coupon-code {font-weight: bold;}
.gv-block { padding: 5px; background-color: #424242; border: 1px solid #61d0fe;}
.gv-code {font-weight:bold;}
.disclaimer {background-color:#000000; text-align: center; font-size:10px; margin:10px auto auto auto; padding:5px; width:768px;}
.disclaimer1 {color:#ffffff; padding:5px;}
.disclaimer1 a:link {color:#ffffff; font-weight:bold;}
.disclaimer1 a:visited {color:#ffffff; font-weight:bold;}
.disclaimer1 a:hover {color:#424242;}
</style>
</head>
<body>
<div class="holder">
<!-- Header Section -->
<div class="header">
<img src="http://www.website.com/images/emails/header.jpg" alt="Website Logo" />
</div>
<!-- Content Section -->
<div class="content">
<div class="content-line">$EMAIL_GREETING</div>
<div class="content-line">$EMAIL_WELCOME</div>
<!--The following only get populated if they're enabled! -->
$COUPON_BLOCK
$GV_BLOCK
<!-- end gv/coupon section -->
<div class="content-line">$EMAIL_MESSAGE_HTML</div>
<div class="content-line">$EMAIL_CONTACT_OWNER<br />$EMAIL_CLOSURE</div>
</div>
<br />
<div class="disclaimer">
<div class="disclaimer1">$EMAIL_DISCLAIMER</div>
<br />
$EXTRA_INFO
<br />
</div>
<!-- Footer Section -->
<div class="footer"><img src="http://www.website.com/images/emails/emailfooter.png"></div>
</div>
</body>
</html>
As you can see from the above, all css gets removed. So if there is anything anybody can suggest that would be worth a try, i'd appreciate it.
Thanks