Skip to content

How does the SmptCommandException work when there are multiple recipients not accepted ? #1751

Answered by jstedfast
gbrunton asked this question in Q&A
Discussion options

You must be logged in to vote

You're asking a more complicated question than you realize because it "all depends" (on the server).

Use Case 1

I believe a SmptCommandException will be thrown. If that's true, should I assume that the valid addresses did not get the email?

Assuming that the server rejects the email address outright, then yes. If it doesn't, then no. Instead, what will happen is that you'll get a delivery failure email message to the sender account telling you it failed to deliver the message.

Use Case 2

I believe an exception will be thrown but if it's a SmptCommandException ex, then will the ex.Mailbox.Address equal the notValidAddress1 value and there won't be any reference to the notValidAddress2 v…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gbrunton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants