// ReSharper disable InconsistentNaming namespace Unosquare.Swan.Networking { #if NETSTANDARD1_3 /// /// Defines the different SMTP status codes /// public enum SmtpStatusCode { /// /// System code /// SystemStatus = 211, /// /// Help message code /// HelpMessage = 214, /// /// Service ready code /// ServiceReady = 220, /// /// Service closing channel code /// ServiceClosingTransmissionChannel = 221, /// /// OK Code /// Ok = 250, /// /// User not local code /// UserNotLocalWillForward = 251, /// /// Cannot verify user code /// CannotVerifyUserWillAttemptDelivery = 252, /// /// Start Mail Input code /// StartMailInput = 354, /// /// Service Not Available code /// ServiceNotAvailable = 421, /// /// Mailbox Busy code /// MailboxBusy = 450, /// /// Local Error code /// LocalErrorInProcessing = 451, /// /// Insufficient storage code /// InsufficientStorage = 452, /// /// Client not permitted code /// ClientNotPermitted = 454, /// /// Command Unrecognized /// CommandUnrecognized = 500, /// /// Syntax error /// SyntaxError = 501, /// /// Command Not Implemented /// CommandNotImplemented = 502, /// /// Bad Command Sequence /// BadCommandSequence = 503, /// /// Must Issue Start Tls First /// MustIssueStartTlsFirst = 530, /// /// Command Parameter Not Implemented /// CommandParameterNotImplemented = 504, /// /// Mailbox Unavailable /// MailboxUnavailable = 550, /// /// User Not Local Try Alternate Path /// UserNotLocalTryAlternatePath = 551, /// /// Exceeded Storage Allocation code /// ExceededStorageAllocation = 552, /// /// Mailbox name not allowed code /// MailboxNameNotAllowed = 553, /// /// Transaction failed code /// TransactionFailed = 554, /// /// General Failure code /// GeneralFailure = -1, } #endif /// /// Enumerates all of the well-known SMTP command names. /// public enum SmtpCommandNames { /// /// An unknown command /// Unknown, /// /// The helo command /// HELO, /// /// The ehlo command /// EHLO, /// /// The quit command /// QUIT, /// /// The help command /// HELP, /// /// The noop command /// NOOP, /// /// The rset command /// RSET, /// /// The mail command /// MAIL, /// /// The data command /// DATA, /// /// The send command /// SEND, /// /// The soml command /// SOML, /// /// The saml command /// SAML, /// /// The RCPT command /// RCPT, /// /// The vrfy command /// VRFY, /// /// The expn command /// EXPN, /// /// The starttls command /// STARTTLS, /// /// The authentication command /// AUTH, } /// /// Enumerates the reply code severities. /// public enum SmtpReplyCodeSeverities { /// /// The unknown severity /// Unknown = 0, /// /// The positive completion severity /// PositiveCompletion = 200, /// /// The positive intermediate severity /// PositiveIntermediate = 300, /// /// The transient negative severity /// TransientNegative = 400, /// /// The permanent negative severity /// PermanentNegative = 500, } /// /// Enumerates the reply code categories. /// public enum SmtpReplyCodeCategories { /// /// The unknown category /// Unknown = -1, /// /// The syntax category /// Syntax = 0, /// /// The information category /// Information = 1, /// /// The connections category /// Connections = 2, /// /// The unspecified a category /// UnspecifiedA = 3, /// /// The unspecified b category /// UnspecifiedB = 4, /// /// The system category /// System = 5, } }