Why is Gmail not showing my text/html alternative?
Posted
by Stijn Sanders
on Stack Overflow
See other posts from Stack Overflow
or by Stijn Sanders
Published on 2010-04-28T18:17:11Z
Indexed on
2010/04/28
18:47 UTC
Read the original article
Hit count: 374
I'm creating an outgoing e-mail message (TIdMessage) with add two TIdText objects, one with ContentType:='text/plain' and one ContentType:='text/html', and also a TIdAttachment object.
This seems to work for Outlook, which shows the HTML content, but for some odd reason, GMail keeps showing me the text/plain version by default.
I've tried adding the text/html version first, I've tried adding '; charset=iso-8859-1' to the content type string, but I can't seem to find what else is different with other e-mails that GMail is showing the HTML from rightaway.
© Stack Overflow or respective owner