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

◆ CheckResponse()

static void System.Net.Mail.DataCommand.CheckResponse ( SmtpStatusCode statusCode,
string serverResponse )
inlinestaticprivate

Definition at line 11 of file DataCommand.cs.

12 {
13 if (statusCode == SmtpStatusCode.StartMailInput)
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, serverResponse);
23 }
24 throw new SmtpException(statusCode, serverResponse, 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.DataCommand.EndSend(), and System.Net.Mail.DataCommand.Send().