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