You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this after you sent the message via System.Net.Mail.SmtpClient?
I highly recommend avoiding this method. It will likely never be perfect - it's intent is only as a temporary solution for developers porting to MailKit, not intended as a real solution for production.
Well I just used it for the thing you mentioned... porting to MailKit. At the moment it was to much work to rewrite a lot of code and so I took the easy way.... casting :-).
But to answer your question. I had the problem before sending it.
Hi,
I got some strange behavior when casting a MailMessage to a MimeMessage like this.
The subject gets UTF8 encoded,
When I open this message in Outlook the subject looks like this
At the moment I just fixed it like this
mimeMessage.Subject = message.Subject;
The text was updated successfully, but these errors were encountered: