97 references to SmtpStatusCode
netstandard (1)
netstandard.cs (1)
1183
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.
SmtpStatusCode
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
671
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.
SmtpStatusCode
))]
System.Net.Mail (95)
System\Net\Mail\SmtpCommands.cs (49)
97
internal static
SmtpStatusCode
Send(SmtpConnection conn, out string response)
255
private static void CheckResponse(
SmtpStatusCode
statusCode, string serverResponse)
259
case
SmtpStatusCode
.StartMailInput:
263
case
SmtpStatusCode
.LocalErrorInProcessing:
264
case
SmtpStatusCode
.TransactionFailed:
280
SmtpStatusCode
statusCode = (
SmtpStatusCode
)CheckCommand.EndSend(result, out response);
298
SmtpStatusCode
statusCode = CheckCommand.Send(conn, out response);
305
private static void CheckResponse(
SmtpStatusCode
statusCode, string serverResponse)
309
case
SmtpStatusCode
.Ok:
313
case
SmtpStatusCode
.ExceededStorageAllocation:
314
case
SmtpStatusCode
.TransactionFailed:
315
case
SmtpStatusCode
.LocalErrorInProcessing:
316
case
SmtpStatusCode
.InsufficientStorage:
342
SmtpStatusCode
statusCode = CheckCommand.Send(conn, out response);
361
if (lines[0].StatusCode !=
SmtpStatusCode
.Ok)
409
private static void CheckResponse(
SmtpStatusCode
statusCode, string serverResponse)
413
case
SmtpStatusCode
.Ok:
432
SmtpStatusCode
statusCode = (
SmtpStatusCode
)CheckCommand.EndSend(result, out response);
452
SmtpStatusCode
statusCode = CheckCommand.Send(conn, out response);
465
private static void CheckResponse(
SmtpStatusCode
statusCode, string response)
469
case
SmtpStatusCode
.ServiceReady:
474
case
SmtpStatusCode
.ClientNotPermitted:
490
SmtpStatusCode
statusCode = (
SmtpStatusCode
)CheckCommand.EndSend(result, out response);
509
SmtpStatusCode
statusCode = CheckCommand.Send(conn, out response);
523
private static void CheckResponse(
SmtpStatusCode
statusCode, string response)
527
case
SmtpStatusCode
.Ok:
531
case
SmtpStatusCode
.ExceededStorageAllocation:
532
case
SmtpStatusCode
.LocalErrorInProcessing:
533
case
SmtpStatusCode
.InsufficientStorage:
549
SmtpStatusCode
statusCode = (
SmtpStatusCode
)CheckCommand.EndSend(result, out response);
573
SmtpStatusCode
statusCode = CheckCommand.Send(conn, out response);
586
private static bool CheckResponse(
SmtpStatusCode
statusCode, string response)
590
case
SmtpStatusCode
.Ok:
591
case
SmtpStatusCode
.UserNotLocalWillForward:
595
case
SmtpStatusCode
.MailboxUnavailable:
596
case
SmtpStatusCode
.UserNotLocalTryAlternatePath:
597
case
SmtpStatusCode
.ExceededStorageAllocation:
598
case
SmtpStatusCode
.MailboxNameNotAllowed:
599
case
SmtpStatusCode
.MailboxBusy:
600
case
SmtpStatusCode
.InsufficientStorage:
618
SmtpStatusCode
statusCode = (
SmtpStatusCode
)CheckCommand.EndSend(result, out response);
638
SmtpStatusCode
statusCode = CheckCommand.Send(conn, out response);
692
internal LineInfo(
SmtpStatusCode
statusCode, string line)
698
internal
SmtpStatusCode
StatusCode { get; }
System\Net\Mail\SmtpConnection.cs (8)
199
case
SmtpStatusCode
.ServiceReady:
212
if ((e.StatusCode !=
SmtpStatusCode
.CommandUnrecognized)
213
&& (e.StatusCode !=
SmtpStatusCode
.CommandNotImplemented))
276
if (info.StatusCode ==
SmtpStatusCode
.CommandParameterNotImplemented)
482
if (info.StatusCode !=
SmtpStatusCode
.ServiceReady)
512
if (info.StatusCode !=
SmtpStatusCode
.ServiceReady)
599
if ((e.StatusCode !=
SmtpStatusCode
.CommandUnrecognized)
600
&& (e.StatusCode !=
SmtpStatusCode
.CommandNotImplemented))
System\Net\Mail\SmtpException.cs (33)
13
private
SmtpStatusCode
_statusCode =
SmtpStatusCode
.GeneralFailure;
15
private static string GetMessageForStatus(
SmtpStatusCode
statusCode, string? serverResponse)
20
private static string GetMessageForStatus(
SmtpStatusCode
statusCode)
25
case
SmtpStatusCode
.CommandUnrecognized:
27
case
SmtpStatusCode
.SyntaxError:
29
case
SmtpStatusCode
.CommandNotImplemented:
31
case
SmtpStatusCode
.BadCommandSequence:
33
case
SmtpStatusCode
.CommandParameterNotImplemented:
35
case
SmtpStatusCode
.SystemStatus:
37
case
SmtpStatusCode
.HelpMessage:
39
case
SmtpStatusCode
.ServiceReady:
41
case
SmtpStatusCode
.ServiceClosingTransmissionChannel:
43
case
SmtpStatusCode
.ServiceNotAvailable:
45
case
SmtpStatusCode
.Ok:
47
case
SmtpStatusCode
.UserNotLocalWillForward:
49
case
SmtpStatusCode
.MailboxBusy:
51
case
SmtpStatusCode
.MailboxUnavailable:
53
case
SmtpStatusCode
.LocalErrorInProcessing:
55
case
SmtpStatusCode
.UserNotLocalTryAlternatePath:
57
case
SmtpStatusCode
.InsufficientStorage:
59
case
SmtpStatusCode
.ExceededStorageAllocation:
61
case
SmtpStatusCode
.MailboxNameNotAllowed:
63
case
SmtpStatusCode
.StartMailInput:
65
case
SmtpStatusCode
.TransactionFailed:
67
case
SmtpStatusCode
.ClientNotPermitted:
69
case
SmtpStatusCode
.MustIssueStartTlsFirst:
74
public SmtpException(
SmtpStatusCode
statusCode) : base(GetMessageForStatus(statusCode))
79
public SmtpException(
SmtpStatusCode
statusCode, string? message) : base(message)
84
public SmtpException() : this(
SmtpStatusCode
.GeneralFailure)
100
_statusCode = (
SmtpStatusCode
)serializationInfo.GetInt32("Status");
103
internal SmtpException(
SmtpStatusCode
statusCode, string? serverMessage, bool _) : base(GetMessageForStatus(statusCode, serverMessage))
120
public
SmtpStatusCode
StatusCode
System\Net\Mail\SmtpFailedRecipientException.cs (2)
34
public SmtpFailedRecipientException(
SmtpStatusCode
statusCode, string? failedRecipient) : base(statusCode)
39
public SmtpFailedRecipientException(
SmtpStatusCode
statusCode, string? failedRecipient, string? serverResponse) : base(statusCode, serverResponse, true)
System\Net\Mail\SmtpReplyReaderFactory.cs (3)
33
private
SmtpStatusCode
_statusCode;
48
internal
SmtpStatusCode
StatusCode
137
_statusCode = (
SmtpStatusCode
)(100 * (b - '0'));