Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/275814-attempting-to-email-an-html-newsletter/
Share on other sites

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.