Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenPop.Mime.Message.ToMailMessage() - Wrong HTML-Body conversion #73

Open
sdesdfsdf opened this issue Jul 20, 2018 · 1 comment
Open

Comments

@sdesdfsdf
Copy link

sdesdfsdf commented Jul 20, 2018

The ContentType of the System.Net.Mail.MailMessage.Body content is always "text/plain".
https://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.body(v=vs.100).aspx

Bug No.1:
In OpenPop.Mime.Message.ToMailMessage() HTML-Bodys are copied into System.Net.Mail.MailMessage.Body

Bug No.2:
In OpenPop.Mime.Message.ToMailMessage() the HTML-Bodys is not copied into the AlternateViews. So when System.Net.Mail.MailMessage.IsBodyHtml is set true a email-client like Outlook can't find the html-part and shows the wrong formated "text/plain" Body.

current.txt
fixed.txt

@StefanLundmark
Copy link

StefanLundmark commented Jul 30, 2020

Ran into this as well, and the fix seems to be working - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants