1 type derived from SmtpException
System.Net.Mail (1)
System\Net\Mail\SmtpFailedRecipientException.cs (1)
13public class SmtpFailedRecipientException : SmtpException
26 instantiations of SmtpException
System.Net.Mail (26)
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 (4)
365throw new SmtpException(SR.SmtpNeedAbsolutePickupDirectory); 505throw new SmtpException(SR.SmtpPickupDirectoryDoesnotSupportSsl); 554return ExceptionDispatchInfo.SetCurrentStackTrace(new SmtpException(SR.net_timeout)); 566return ExceptionDispatchInfo.SetCurrentStackTrace(new SmtpException(SR.SmtpSendMailFailure, e));
System\Net\Mail\SmtpCommands.cs (16)
58throw new SmtpException(SR.SmtpAuthResponseInvalid); 104throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, serverResponse); 107throw new SmtpException(statusCode, serverResponse, true); 149throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, serverResponse); 152throw new SmtpException(statusCode, serverResponse, true); 182throw new SmtpException(SR.SmtpEhloResponseInvalid); 188throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, lines[0].Line); 191throw new SmtpException(lines[0].StatusCode, lines[0].Line, true); 236throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, serverResponse); 239throw new SmtpException(statusCode, serverResponse, true); 281throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, response); 284throw new SmtpException(statusCode, response, true); 332throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, response); 335throw new SmtpException(statusCode, response, true); 389throw new SmtpException(SR.net_webstatus_ServerProtocolViolation, response); 392throw new SmtpException(statusCode, response, true);
System\Net\Mail\SmtpConnection.cs (3)
123throw new SmtpException(info.StatusCode, info.Line, true); 154throw new SmtpException(SR.MailServerDoesNotSupportStartTls); 223throw new SmtpException(SR.SmtpAuthenticationFailed);
4 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 (2)
System\Net\Mail\SmtpClient.cs (1)
560e is SmtpException ||
System\Net\Mail\SmtpConnection.cs (1)
132catch (SmtpException e)