HTML Email template Mailchimp, CSS problems in Outlook and Gmail -


i've developed html email template , imported mailchimp. works perfect in testing mode. when send it, gmail, outlook , windows mail have problems css style loading. shows html.

then tried develop tables without linking css, again perfect in mailchimp testing , problems gmail, outlook , windows mail. there not loading style attribute of tables.

please help.

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">  <head>   <meta http-equiv="content-type" content="text/html; charset=utf-8" />   <title>email design</title>   <meta name="viewport" content="width=device-width, initial-scale=1.0"/> </head>     <body style="margin: 0; padding: 0;">  <table align="center" border="1" cellpadding="0" cellspacing="0" width="600" background="img/beton.jpg" style="">  <tr>   <td >  <img src="img/logo.png" alt="creating email magic" width="160" height=auto align="right"  style="padding: 49px 60px; 0 0; left:548px; display: block;" />  <a href="facebook.com"><img src="img/facebook.png" alt="creating email magic" width="50" height=auto align="right"  style="padding: 39px 0px 0 0px; 0 0; left:548px; display: block;" /></a>        <img src="img/newsletter_h1.png" alt="creating email magic" width="342" height=auto align="left"  style="padding: 0px 00px; 0 0; display: block;" />   </td>  </tr>  <tr>   <td >    row 2   </td>  <tr>   <td >    row 3   </td>  </tr> </table>          <div></div> </body>     </html> 

maybe issue in header type in mail. please check headers per below.

// set content-type when sending html email $headers = "mime-version: 1.0" . "\r\n"; $headers .= "content-type:text/html;charset=utf-8" . "\r\n"; 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -