How to construct email for outlook in javascript -


i'm using node nodemailer send email web app. using node2html plug-in convert json object html.

i have table in html email , works fine in gmail (renders correctly) same not working in outlook. table in email shows following - can see not formatting @ all.

researched online , stackoverflow , while found number of references suggesting not using external css references , in-lining css , can see below i'm not using css - table, th, tr , td tags still outlook not render correctly. i'm using outlook 2016.

any pointers appreciated.

<html><head></head><body><table><tbody><tr><th>company</th><th>contact</th><th>country</th></tr><tr><td>alfreds futterkiste</td><td>maria anders</td><td>germany</td></tr><tr><td>centro comercial moctezuma</td><td>francisco chang</td><td>mexico</td></tr><tr><td>ernst handel</td><td>roland mendel</td><td>austria</td></tr><tr><td>island trading</td><td>helen bennett</td><td>uk</td></tr><tr><td>laughing bacchus winecellars</td><td>yoshi tannamuri</td><td>canada</td></tr><tr><td>magazzini alimentari riuniti</td><td>giovanni rovelli</td><td>italy</td></tr></tbody></table></body></html> 

zurb foundation email built on node , uses gulp build emails. sound best place start considering attempting do. features node modules can automatically inline email, saving need so.

95% of emails run external style sheet, sadly, outlook 2016 isn't 1 of them , 1 of worst email compliance. wanted add gmail not work external style sheets, means doesn't work google fonts either.

i hope gives direction.

good luck.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -