views:

129

answers:

3

My app sends out email to users (upon signup, welcome etc.) and they show up blank in IE. Fine in IE8, Firefox. The content-type for the email is set to html. The email has links.

Any pointers on how to solve this or workaround this, greatly appreciated.

Update: If I change my gmail view to 'basic html' in IE7, then the email gets displayed.

So what is it in my mailer code that causes blank display in standard view (atleast in gmail)

code is at http://gist.github.com/230224

A: 

IE isn't an e-mail client. Is this on a specific webmail client?

ceejayoz
+1  A: 

Since Internet Explorer isn't an e-mail client, I can only guess that what you mean is Microsoft Outlook. On that premise, the problem might be that Outlook's HTML renderer has in fact been Microsoft Word since 2007. Microsoft Word has terrible support for just about everything web related, so the only "fix" is to dumb down your HTML and CSS as much as possible. Opening your HTML e-mails in Word before sending them will make it easier to debug problems, but it's still going to be a royal PITA because of the poor level of support Word has.

If you didn't mean Outlook, but infact IE, I think you need to elaborate on exactly where you are seeing these problems (like what web mail client).

asbjornu
sorry for the confusion. yes, any webmail client, yahoo mail, gmail etc. render my email blank whereas the same email in FF looks just fine.
Does the e-mail contain a lot of external resource references? If so, try to embed them inline with MIME multipart, data URI's and similar techniques.
asbjornu
My mailer code looks straightforward, do you see any issues?http://gist.github.com/230224
It's not a complete HTML file. Plus, I don't see the code on how the full MIME of this message looks like before it's sent to the SMTP server. There might be some problem with how it is composed.
asbjornu
A: 

My mailer code was wrapped in a div like this:

<div style="font-family:Georgia;margin: 10%;">

The problem is with the margin:10%;

Once I removed it, the emails were displayed fine in ie7.