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