Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CheckResponse()

static void System.Net.Mail.MailCommand.CheckResponse ( SmtpStatusCode statusCode,
string response )
inlinestaticprivate

Definition at line 11 of file MailCommand.cs.

12 {
13 if (statusCode == SmtpStatusCode.Ok)
14 {
15 return;
16 }
17 switch (statusCode)
18 {
19 default:
20 if (statusCode < (SmtpStatusCode)400)
21 {
22 throw new SmtpException(System.SR.net_webstatus_ServerProtocolViolation, response);
23 }
24 throw new SmtpException(statusCode, response, serverResponse: true);
25 }
26 }
static string net_webstatus_ServerProtocolViolation
Definition SR.cs:152
Definition SR.cs:7

References System.SR.net_webstatus_ServerProtocolViolation.

Referenced by System.Net.Mail.MailCommand.EndSend(), and System.Net.Mail.MailCommand.Send().