1 type derived from SmtpFailedRecipientException
System.Net.Mail (1)
System\Net\Mail\SmtpFailedRecipientsException.cs (1)
13public class SmtpFailedRecipientsException : SmtpFailedRecipientException
1 instantiation of SmtpFailedRecipientException
System.Net.Mail (1)
System\Net\Mail\SmtpTransport.cs (1)
129new SmtpFailedRecipientException(_connection.Reader!.StatusCode, smtpAddress, response));
23 references to SmtpFailedRecipientException
netstandard (1)
netstandard.cs (1)
1181[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.SmtpFailedRecipientException))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
667[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.SmtpFailedRecipientException))]
System.Net.Mail (21)
System\Net\Mail\SmtpClient.cs (4)
496List<SmtpFailedRecipientException>? failedRecipientExceptions = null; 531var e = failedRecipientExceptions.Count == 1 544if (e is SmtpFailedRecipientException && !((SmtpFailedRecipientException)e).fatal)
System\Net\Mail\SmtpFailedRecipientsException.cs (14)
15private readonly SmtpFailedRecipientException[] _innerExceptions; 19_innerExceptions = Array.Empty<SmtpFailedRecipientException>(); 24_innerExceptions = Array.Empty<SmtpFailedRecipientException>(); 29SmtpFailedRecipientException? smtpException = innerException as SmtpFailedRecipientException; 30_innerExceptions = smtpException == null ? Array.Empty<SmtpFailedRecipientException>() : new SmtpFailedRecipientException[] { smtpException }; 37_innerExceptions = (SmtpFailedRecipientException[])info.GetValue("innerExceptions", typeof(SmtpFailedRecipientException[]))!; 40public SmtpFailedRecipientsException(string? message, SmtpFailedRecipientException[] innerExceptions) : 45_innerExceptions = innerExceptions ?? Array.Empty<SmtpFailedRecipientException>(); 48internal SmtpFailedRecipientsException(List<SmtpFailedRecipientException> innerExceptions, bool allFailed) : 58public SmtpFailedRecipientException[] InnerExceptions 71serializationInfo.AddValue("innerExceptions", _innerExceptions, typeof(SmtpFailedRecipientException[]));
System\Net\Mail\SmtpTransport.cs (3)
112internal async Task<(MailWriter, List<SmtpFailedRecipientException>?)> SendMailAsync<TIOAdapter>(MailAddress sender, MailAddressCollection recipients, string deliveryNotify, bool allowUnicode, CancellationToken cancellationToken = default) 119List<SmtpFailedRecipientException>? failedRecipientExceptions = null; 135var exception = failedRecipientExceptions.Count == 1