Send Email and GMail problem. Any idea?

S

shapper

Hello,

I am sending an HTML newsletter to various subscribers.
I created two alternate views: Text/Html and Text/Plain

In Outlook the email looks fine but in GMail I don't get the Html
version.
If I remove the Text/Plain version then the Html version is displayed.

Any idea why?

Should I only send a HTML version?

My code is as follows:

AlternateView html =
AlternateView.CreateAlternateViewFromString(htmlContent.ToString(),
null, "text/html");
html.TransferEncoding = TransferEncoding.QuotedPrintable;

AlternateView text =
AlternateView.CreateAlternateViewFromString(textContent.ToString(),
null, "text/plain");
text.TransferEncoding = TransferEncoding.QuotedPrintable;

try {
foreach (Subscriber s in subscribers) {

MailMessage mail = new MailMessage();
mail.AlternateViews.Add(html);
mail.AlternateViews.Add(text); // Disables Html Version in
GMail
mail.From = _mails["NoReply"];
mail.Priority = MailPriority.Normal;,

mail.Subject = newsletter.Name;
mail.To.Add(new MailAddress(s.Email, s.Name));

Am I doing something wrong?

Thank You,
Miguel
 
A

Andy O'Neill

shapper said:
Hello,

I am sending an HTML newsletter to various subscribers.
I created two alternate views: Text/Html and Text/Plain

In Outlook the email looks fine but in GMail I don't get the Html
version.
If I remove the Text/Plain version then the Html version is displayed.

Any idea why?

Are you viewing the results in gmail in a web page?
Because gmail is going to have some css of it's own.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top