-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
CreateFromMailMessage generates duplicated From and To addresses #115
Comments
I have a theory. Are you doing the conversion of your MailMessage into a MimeMessage after sending it via System.Net.Mail.SmtpClient? Looking at Microsoft's reference source for MailMessage, it looks like the MailMessage.From, To, etc are not pushed to the MailMessage.Headers until the message is sent, but I'm not 100% sure about that (I've really just given their source code a quick glance). Since |
Exactly, i've sent it already! |
Oh, yes, it is still a bug. I just wanted to figure out why my tests hadn't discovered the problem and to make sure I was understanding what the issue was. I have a patch I'm about to commit... |
Okay, should be fixed now. I'll make a new MimeKit release this weekend and push new packages to NuGet when I do. |
When using MimeKit.MimeMessage.CreateFromMailMessage static method to convert my .NET -MailMessage to a MimeMessage, i get a mail which has duplicates on the message.From and message.To collections.
Example
Original MailMessage
Result MimeMessage
The text was updated successfully, but these errors were encountered: