-
-
Notifications
You must be signed in to change notification settings - Fork 818
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
Empty email is send if address is reserved by rfc 2606 #1459
Comments
This is a server bug and not the fault of MailKit at all. |
What I think you are experiencing is that when an SMTP server supports the PIPELINING extension, MailKit will pipeline the When the message being sent has a mix of valid and invalid recipients, by the time MailKit realizes that there were invalid recipients, the only thing it can do to abort the send is to terminate the The problem, really, is that pipelining SMTP commands does not translate well to a Send/SendAsync paradigm where it is expected that the message was either sent to all recipients or not sent at all. I'll revert the commit that added the |
Describe the bug
We are using the copy of production DB with obfuscated data hence some emails are invalid to avoid real users get the test notifications. But it turned out that if obfuscated email doesn't match the 5.1.4 of RFC MailKit sends the empty email to the all valid recepients in the list.
Platform (please complete the following information):
Exception
$(String[] args) in Program.cs:line 305.1.4 Recipient address reserved by RFC 2606
at MailKit.Net.Smtp.SmtpClient.Send(FormatOptions options, MimeMessage message, MailboxAddress sender, IList`1 recipients, CancellationToken cancellationToken, ITransferProgress progress)
at MailKit.Net.Smtp.SmtpClient.Send(FormatOptions options, MimeMessage message, CancellationToken cancellationToken, ITransferProgress progress)
at MailKit.MailTransport.Send(MimeMessage message, CancellationToken cancellationToken, ITransferProgress progress)
at Program.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Valid users received the normal email instead of empty
Code Snippets
If applicable, add code snippets to help explain your problem.
The text was updated successfully, but these errors were encountered: