1 type derived from SmtpException
System.Net.Mail (1)
System\Net\Mail\SmtpFailedRecipientException.cs (1)
13public class SmtpFailedRecipientException : SmtpException
35 instantiations of SmtpException
System.Net.Mail (35)
System\Net\Mail\MailAddress.cs (3)
189throw new SmtpException(SR.Format(SR.SmtpNonAsciiUserNotSupported, Address)); 216throw new SmtpException(SR.Format(SR.SmtpInvalidHostName, Address), argEx); 222throw new SmtpException(SR.Format(SR.SmtpInvalidHostName, Address));
System\Net\Mail\SmtpClient.cs (7)
373throw new SmtpException(SR.SmtpNeedAbsolutePickupDirectory); 481throw new SmtpException(SR.SmtpPickupDirectoryDoesnotSupportSsl); 521throw new SmtpException(SR.net_timeout); 531throw new SmtpException(SR.SmtpSendMailFailure, e); 616throw new SmtpException(SR.SmtpPickupDirectoryDoesnotSupportSsl); 679throw new SmtpException(SR.SmtpSendMailFailure, e); 852exception = new SmtpException(SR.SmtpSendMailFailure, exception);
System\Net\Mail\SmtpCommands.cs (16)
209throw new SmtpException(SR.SmtpAuthResponseInvalid); 269throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, serverResponse); 272throw new SmtpException(statusCode, serverResponse, true); 321throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, serverResponse); 324throw new SmtpException(statusCode, serverResponse, true); 359throw new SmtpException(SR.SmtpEhloResponseInvalid); 365throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, lines[0].Line); 368throw new SmtpException(lines[0].StatusCode, lines[0].Line, true); 421throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, serverResponse); 424throw new SmtpException(statusCode, serverResponse, true); 479throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, response); 482throw new SmtpException(statusCode, response, true); 538throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, response); 541throw new SmtpException(statusCode, response, true); 608throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, response); 611throw new SmtpException(statusCode, response, true);
System\Net\Mail\SmtpConnection.cs (8)
202throw new SmtpException(info.StatusCode, info.Line, true); 230throw new SmtpException(SR.MailServerDoesNotSupportStartTls); 278throw new SmtpException(SR.SmtpAuthenticationFailed); 476throw new SmtpException(info.StatusCode, info.Line, true); 506thisPtr.InvokeCallback(new SmtpException(info.StatusCode, info.Line, true)); 552throw new SmtpException(SR.MailServerDoesNotSupportStartTls); 611throw new SmtpException(SR.MailServerDoesNotSupportStartTls); 816throw new SmtpException(SR.SmtpAuthenticationFailed);
System\Net\Mail\SmtpTransport.cs (1)
136throw new SmtpException(SR.MailHostNotFound, innerException);
9 references to SmtpException
netstandard (1)
netstandard.cs (1)
1180[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.SmtpException))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
666[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.SmtpException))]
System.Net.Mail (7)
System\Net\Mail\SmtpClient.cs (4)
526e is SmtpException) 674e is SmtpException) 850if (!(exception is SmtpException)) 864catch (SmtpException se)
System\Net\Mail\SmtpConnection.cs (3)
210catch (SmtpException e) 514catch (SmtpException) 589catch (SmtpException e)