PC Review


Reply
Thread Tools Rate Thread

AlternateView for Multipart Text/HTML Email Message

 
 
Dan Walowski
Guest
Posts: n/a
 
      6th Apr 2006
Hello,

I have a program that is automatically generating email that consists of
HTML with a text backup. This works just fine for all email clients except
Yahoo's online interface which displays these messages with the paperclip
indicating an attachment, but, there isn't an attachment. Text by itself is
fine and HTML by itself is fine as well. I think it has something with the
way .Net organizes the body parts. Rather than just adding a body part, it
adds a wrapper body part around the Text and HTML body parts and I can't
find a way to change this behavior. Any suggestions out there other than
ditching .Net for this application?

msgMail.AlternateViews.Add(System.Net.Mail.AlternateView.CreateAlternateViewFromString(strTextBody,
System.Text.Encoding.ASCII, "text/plain"))
msgMail.AlternateViews.Add(System.Net.Mail.AlternateView.CreateAlternateViewFromString(strHTMLBody,
System.Text.Encoding.ASCII, "text/html"))

Thanks,

Dan Walowski


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CreateUserWizard multipart AlternateView for emails joelkeepup Microsoft ASP .NET 0 25th Sep 2008 03:04 PM
text/plain part of multipart message ignored; html part converted instead (Outlook 2003) kiden Microsoft Outlook Discussion 3 23rd Oct 2006 12:11 PM
Email Message Export to text/.doc/html files? =?Utf-8?B?WUo=?= Microsoft Outlook Discussion 5 5th Jul 2006 10:31 AM
recieving a multipart e-mail containing HTML + plain text content.............. Claus Petersen Microsoft Outlook 0 9th May 2005 07:41 AM
Want to filter on text in HTML source of an email message Tom van Stiphout Microsoft Outlook Discussion 0 28th Oct 2003 12:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:08 AM.