Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert web html to e-mail Html [closed]

I was wondering, if there is software out there that can convert an (web html css) to (e-mail html inline css) file, in order to be viewable from most e-mail clients like outlook, Thunderbird or webmails like gmail,yahoo,hotmail etc.

I would like to be able to write my code as I do writing xhtml files and then import that file to the program and convert divs to tables and css to inline styles compatible for e-mail clients.

Any suggestions?

like image 723
themhz Avatar asked Mar 18 '12 19:03

themhz


2 Answers

I use a service by Mailchimp named CSS inliner. Its really a nice tool you have to just keep your html & CSS in the same file(no external css file). I mean to say keep all CSS in your html file inside tag in the . See below:

<head>    
  <style type="text/css">
      /*Your CSS goes Here*/
  </style>
</head>

Here is the link: https://templates.mailchimp.com/resources/inline-css

like image 163
SVS Avatar answered Oct 19 '22 02:10

SVS


Unfortunately I know of no software that will directly do this. There are features that can be represented in divs that cannot be in tables. Furthermore, it is not trivial to send the actual HTML.

email html is somewhat of a dark art as it requires layout techniques that were deprecated (tables for layout) and manually testing on relevant platforms (Yahoo, Google, Thunderbird, Outlook).

like image 25
Mikhail Avatar answered Oct 19 '22 00:10

Mikhail