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

◆ CheckResponse()

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

Definition at line 11 of file HelloCommand.cs.

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

References System.SR.net_webstatus_ServerProtocolViolation.

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