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

◆ CheckResponse()

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

Definition at line 11 of file StartTlsCommand.cs.

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

References System.SR.net_webstatus_ServerProtocolViolation.

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