Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DataStopCommand.cs
Go to the documentation of this file.
1namespace System.Net.Mail;
2
3internal static class DataStopCommand
4{
5 private static void CheckResponse(SmtpStatusCode statusCode, string serverResponse)
6 {
7 switch (statusCode)
8 {
9 case SmtpStatusCode.Ok:
10 return;
11 }
12 if (statusCode < (SmtpStatusCode)400)
13 {
15 }
16 throw new SmtpException(statusCode, serverResponse, serverResponse: true);
17 }
18
19 private static void PrepareCommand(SmtpConnection conn)
20 {
21 if (conn.IsStreamOpen)
22 {
24 }
26 }
27
28 internal static void Send(SmtpConnection conn)
29 {
30 PrepareCommand(conn);
31 string response;
32 SmtpStatusCode statusCode = CheckCommand.Send(conn, out response);
33 CheckResponse(statusCode, response);
34 }
35}
static SmtpStatusCode Send(SmtpConnection conn, out string response)
static void CheckResponse(SmtpStatusCode statusCode, string serverResponse)
static void Send(SmtpConnection conn)
static void PrepareCommand(SmtpConnection conn)
static readonly byte[] DataStop
static string net_webstatus_ServerProtocolViolation
Definition SR.cs:152
static string SmtpDataStreamOpen
Definition SR.cs:154
Definition SR.cs:7