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
Hi, I have this question.
In my message, there are two recipients, one has a correct email address and the other has an incorrect email address. So I aspect that Send method raises an exception but it’s not true, furthermore I see that SmtpCommandException has a MailBox property that:
“This property will only be available when the MailKit.Net.Smtp.SmtpCommandException.ErrorCode value is either MailKit.Net.Smtp.SmtpErrorCode.SenderNotAccepted or MailKit.Net.Smtp.SmtpErrorCode.RecipientNotAccepted and may be used to help the user decide how to proceed.”
However, if there are more emails incorrect ? Where can I find this information?
Thanks in advance.
Regards
Diego Parolin.
The text was updated successfully, but these errors were encountered:
Didacuss
changed the title
Manage more recipient and SmtpCommandException.
Manage more recipients and SmtpCommandException.
May 12, 2015
If the addresses are wrong and you are not getting an exception, then that suggests that the SMTP server is not returning an error when MailKit sends the RCPT TO commands.
To verify this, you can try getting a protocol log.
As far as there only being a single MailboxAddress on SmtpCommandException: that's because of the way the SMTP protocol works. A RCPT TO command is sent for each recipient and the first recipient that fails, the exception gets thrown and the address that failed is stuffed into the SmtpCommandException.
Hi, I have this question.
In my message, there are two recipients, one has a correct email address and the other has an incorrect email address. So I aspect that Send method raises an exception but it’s not true, furthermore I see that SmtpCommandException has a MailBox property that:
“This property will only be available when the MailKit.Net.Smtp.SmtpCommandException.ErrorCode value is either MailKit.Net.Smtp.SmtpErrorCode.SenderNotAccepted or MailKit.Net.Smtp.SmtpErrorCode.RecipientNotAccepted and may be used to help the user decide how to proceed.”
However, if there are more emails incorrect ? Where can I find this information?
Thanks in advance.
Regards
Diego Parolin.
The text was updated successfully, but these errors were encountered: