96 references to SmtpStatusCode
System (96)
net\System\Net\mail\SmtpCommands.cs (50)
93
internal static
SmtpStatusCode
Send(SmtpConnection conn, out string response)
251
static void CheckResponse(
SmtpStatusCode
statusCode, string serverResponse)
255
case
SmtpStatusCode
.StartMailInput:
259
case
SmtpStatusCode
.LocalErrorInProcessing:
260
case
SmtpStatusCode
.TransactionFailed:
275
SmtpStatusCode
statusCode = (
SmtpStatusCode
)CheckCommand.EndSend(result, out response);
293
SmtpStatusCode
statusCode = CheckCommand.Send(conn, out response);
309
static void CheckResponse(
SmtpStatusCode
statusCode, string serverResponse)
313
case
SmtpStatusCode
.Ok:
317
case
SmtpStatusCode
.ExceededStorageAllocation:
318
case
SmtpStatusCode
.TransactionFailed:
319
case
SmtpStatusCode
.LocalErrorInProcessing:
320
case
SmtpStatusCode
.InsufficientStorage:
353
SmtpStatusCode
statusCode = CheckCommand.Send(conn, out response);
372
if (lines[0].StatusCode !=
SmtpStatusCode
.Ok)
420
static void CheckResponse(
SmtpStatusCode
statusCode, string serverResponse)
424
case
SmtpStatusCode
.Ok:
442
SmtpStatusCode
statusCode = (
SmtpStatusCode
)CheckCommand.EndSend(result, out response);
462
SmtpStatusCode
statusCode = CheckCommand.Send(conn, out response);
475
static void CheckResponse(
SmtpStatusCode
statusCode, string response)
479
case
SmtpStatusCode
.ServiceReady:
484
case
SmtpStatusCode
.ClientNotPermitted:
499
SmtpStatusCode
statusCode = (
SmtpStatusCode
)CheckCommand.EndSend(result, out response);
518
SmtpStatusCode
statusCode = CheckCommand.Send(conn, out response);
532
static void CheckResponse(
SmtpStatusCode
statusCode, string response)
536
case
SmtpStatusCode
.Ok:
540
case
SmtpStatusCode
.ExceededStorageAllocation:
541
case
SmtpStatusCode
.LocalErrorInProcessing:
542
case
SmtpStatusCode
.InsufficientStorage:
557
SmtpStatusCode
statusCode = (
SmtpStatusCode
)CheckCommand.EndSend(result, out response);
581
SmtpStatusCode
statusCode = CheckCommand.Send(conn, out response);
596
static bool CheckResponse(
SmtpStatusCode
statusCode, string response)
600
case
SmtpStatusCode
.Ok:
601
case
SmtpStatusCode
.UserNotLocalWillForward:
605
case
SmtpStatusCode
.MailboxUnavailable:
606
case
SmtpStatusCode
.UserNotLocalTryAlternatePath:
607
case
SmtpStatusCode
.ExceededStorageAllocation:
608
case
SmtpStatusCode
.MailboxNameNotAllowed:
609
case
SmtpStatusCode
.MailboxBusy:
610
case
SmtpStatusCode
.InsufficientStorage:
627
SmtpStatusCode
statusCode = (
SmtpStatusCode
)CheckCommand.EndSend(result, out response);
648
SmtpStatusCode
statusCode = CheckCommand.Send(conn, out response);
682
SmtpStatusCode
statusCode;
684
internal LineInfo(
SmtpStatusCode
statusCode, string line)
696
internal
SmtpStatusCode
StatusCode
net\System\Net\mail\smtpconnection.cs (8)
358
case
SmtpStatusCode
.ServiceReady:
375
if ((e.StatusCode !=
SmtpStatusCode
.CommandUnrecognized)
376
&& (e.StatusCode !=
SmtpStatusCode
.CommandNotImplemented)) {
445
if (info.StatusCode ==
SmtpStatusCode
.CommandParameterNotImplemented)
727
if (info.StatusCode !=
SmtpStatusCode
.ServiceReady)
757
if (info.StatusCode !=
SmtpStatusCode
.ServiceReady)
846
if ((e.StatusCode !=
SmtpStatusCode
.CommandUnrecognized)
847
&& (e.StatusCode !=
SmtpStatusCode
.CommandNotImplemented)){
net\System\Net\mail\SmtpException.cs (33)
17
SmtpStatusCode
statusCode =
SmtpStatusCode
.GeneralFailure;
19
static string GetMessageForStatus(
SmtpStatusCode
statusCode, string serverResponse)
24
static string GetMessageForStatus(
SmtpStatusCode
statusCode)
29
case
SmtpStatusCode
.CommandUnrecognized:
31
case
SmtpStatusCode
.SyntaxError:
33
case
SmtpStatusCode
.CommandNotImplemented:
35
case
SmtpStatusCode
.BadCommandSequence:
37
case
SmtpStatusCode
.CommandParameterNotImplemented:
39
case
SmtpStatusCode
.SystemStatus:
41
case
SmtpStatusCode
.HelpMessage:
43
case
SmtpStatusCode
.ServiceReady:
45
case
SmtpStatusCode
.ServiceClosingTransmissionChannel:
47
case
SmtpStatusCode
.ServiceNotAvailable:
49
case
SmtpStatusCode
.Ok:
51
case
SmtpStatusCode
.UserNotLocalWillForward:
53
case
SmtpStatusCode
.MailboxBusy:
55
case
SmtpStatusCode
.MailboxUnavailable:
57
case
SmtpStatusCode
.LocalErrorInProcessing:
59
case
SmtpStatusCode
.UserNotLocalTryAlternatePath:
61
case
SmtpStatusCode
.InsufficientStorage:
63
case
SmtpStatusCode
.ExceededStorageAllocation:
65
case
SmtpStatusCode
.MailboxNameNotAllowed:
67
case
SmtpStatusCode
.StartMailInput:
69
case
SmtpStatusCode
.TransactionFailed:
71
case
SmtpStatusCode
.ClientNotPermitted:
73
case
SmtpStatusCode
.MustIssueStartTlsFirst:
79
public SmtpException(
SmtpStatusCode
statusCode) : base(GetMessageForStatus(statusCode))
84
public SmtpException(
SmtpStatusCode
statusCode, string message) : base(message)
89
public SmtpException() : this(
SmtpStatusCode
.GeneralFailure)
103
statusCode = (
SmtpStatusCode
)serializationInfo.GetInt32("Status");
107
internal SmtpException(
SmtpStatusCode
statusCode, string serverMessage, bool serverResponse) : base(GetMessageForStatus(statusCode,serverMessage))
132
public
SmtpStatusCode
StatusCode
net\System\Net\mail\SmtpFailedRecipientException.cs (2)
33
public SmtpFailedRecipientException(
SmtpStatusCode
statusCode, string failedRecipient) : base(statusCode)
38
public SmtpFailedRecipientException(
SmtpStatusCode
statusCode, string failedRecipient, string serverResponse) : base(statusCode, serverResponse, true)
net\System\Net\mail\SmtpReplyReaderFactory.cs (3)
31
SmtpStatusCode
statusCode;
46
internal
SmtpStatusCode
StatusCode
141
statusCode = (
SmtpStatusCode
)(100*(b - '0'));