DHood Posted March 18, 2013 Share Posted March 18, 2013 I'm attempting to email a newsletter that is html based. I have the code working 100% when accessing it directly via the .html file but when I email it, there's a bunch of random spacing. I tried adding style='display:block;margin:0;padding:0;' to all the images, which improved it some, but not too much. Quote Link to comment https://forums.phpfreaks.com/topic/275814-attempting-to-email-an-html-newsletter/ Share on other sites More sharing options...
yomanny Posted March 18, 2013 Share Posted March 18, 2013 It's recommended to use tables when creating HTML styled emails, also keep in mind that images won't show in lots of email clients (e.g. Gmail). Different clients also handle CSS differently, so if I were you I would just throw together a basic HTML table with some background and text colors. - W Quote Link to comment https://forums.phpfreaks.com/topic/275814-attempting-to-email-an-html-newsletter/#findComment-1419339 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.