Extra Spaces Added by Mail Server/Client in HTML Email
Hello, I'm having an issue with certain mail servers (lotus, aol, etc) that add extra spaces to the html code of my html email. This is causing an issue with images and links. For example, in the code, I will point to an image like:
And the receiving mail server will sometimes add an extra space(s) like:
This of course breaks the code and causes the images to not display and/or links to 404.
Has anyone else seen this and have a resolution?
Note, this doesn't always happen on every server. If I send the exact same email to my exchange server, it displays fine. Also, I'm not sure if it's the receiving mail server or mail client that is adding the extra space(s).
I don't think that is the case, the email basically has a list of images in it and it will just add a space to the path in the src for one out of about 30 or more. It doesn't always apply to just img tags either, sometimes it adds it to table tags or just randomly. The mail server doesn't place the email in the spam folder either, it goes directly to the inbox.
I have tried base64 encoding the email and updating the email headers to specify that it is a base64 encoded email and that works, however, I then have the issue that some users don't have mail clients that can base64 decode the email, so I couldn't go that route....