Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. catch (SmtpException oSMTPException)
  2. {
  3. string sFailedEmailIds = string.Empty;
  4. string[] sMailids = null;
  5.  
  6. ((System.Net.Mail.SmtpFailedRecipientsException)(oSMTPException)).
  7. InnerExceptions[0].FailedRecipient
  8. }
  9.  
  10. string sFailedEmailIds = String.Join(",", ((System.Net.Mail.SmtpFailedRecipientsException)(oSMTPException)).InnerExceptions.Select(x=>x.FailedRecipient));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement