Aspose::Email::Clients::Smtp Namespace Reference

Namespaces

 Commands
 
 Models
 

Classes

class  Details_SmtpFailedRecipientException
 Represents the exception which arises when the specified recipient is wrong More...
 
class  Details_SmtpFailedRecipientsException
 Summary description for SmtpFailedRecipientsException. More...
 
class  FailedMailMessageEventArgs
 Provides data for the MessageSending and MessageSent events. More...
 
class  IMailTransferAgent
 Provides the base interface for mail transfer agents. More...
 
class  MailMessageEventArgs
 Provides data for the MessageSending and MessageSent events. More...
 
class  SendMessagesResult
 Contains result of operation with messages More...
 
class  SmtpClient
 Allows applications to send messages by using the Simple Mail Transfer Protocol (SMTP). More...
 

Typedefs

using SmtpFailedRecipientException = System::ExceptionWrapper< Details_SmtpFailedRecipientException >
 
using SmtpFailedRecipientsException = System::ExceptionWrapper< Details_SmtpFailedRecipientsException >
 

Enumerations

enum  SmtpDeliveryMethod { SmtpDeliveryMethod::Network = 0, SmtpDeliveryMethod::SpecifiedPickupDirectory, SmtpDeliveryMethod::PickupDirectoryFromIis }
 Smtp delivery method More...
 
enum  SmtpKnownAuthenticationType : int64_t {
  SmtpKnownAuthenticationType::None = 0, SmtpKnownAuthenticationType::Login = 0x1, SmtpKnownAuthenticationType::OAUTH2 = 0x2, SmtpKnownAuthenticationType::NTLM = 0x4,
  SmtpKnownAuthenticationType::Plain = 0x8, SmtpKnownAuthenticationType::GSSAPI = 0x10, SmtpKnownAuthenticationType::CramMD5 = 0x20, SmtpKnownAuthenticationType::External = 0x40,
  SmtpKnownAuthenticationType::KerberosV4 = 0x80, SmtpKnownAuthenticationType::Anonymous = 0x100, SmtpKnownAuthenticationType::DigestMD5 = 0x200, SmtpKnownAuthenticationType::GSSSPNEGO = 0x400,
  SmtpKnownAuthenticationType::OtpMd4 = 0x800, SmtpKnownAuthenticationType::OtpMd5 = 0x1000, SmtpKnownAuthenticationType::OtpSha1 = 0x2000, SmtpKnownAuthenticationType::SKEY = 0x4000,
  SmtpKnownAuthenticationType::PassDssSha3Des1 = 0x8000, SmtpKnownAuthenticationType::ScramSha1 = 0x10000, SmtpKnownAuthenticationType::ScramSha1Plus = 0x20000, SmtpKnownAuthenticationType::ScramSha224 = 0x40000,
  SmtpKnownAuthenticationType::ScramSha224Plus = 0x80000, SmtpKnownAuthenticationType::ScramSha256 = 0x100000, SmtpKnownAuthenticationType::ScramSha256Plus = 0x200000, SmtpKnownAuthenticationType::ScramSha384 = 0x400000,
  SmtpKnownAuthenticationType::ScramSha384Plus = 0x800000, SmtpKnownAuthenticationType::ScramSha512 = 0x1000000, SmtpKnownAuthenticationType::ScramSha512Plus = 0x2000000
}
 
enum  SmtpStatusCode {
  SmtpStatusCode::NotDefined = 0, SmtpStatusCode::GeneralFailure = -1, SmtpStatusCode::SystemStatus = 211, SmtpStatusCode::HelpMessage = 214,
  SmtpStatusCode::ServiceReady = 220, SmtpStatusCode::ServiceClosingTransmissionChannel = 221, SmtpStatusCode::AuthenticationSucceeded = 235, SmtpStatusCode::Ok = 250,
  SmtpStatusCode::UserNotLocalWillForward = 251, SmtpStatusCode::CannotVerifyUserWillAttemptDelivery = 252, SmtpStatusCode::Base64Response = 334, SmtpStatusCode::StartMailInput = 354,
  SmtpStatusCode::ServiceNotAvailable = 421, SmtpStatusCode::PasswordTransitionNeeded = 432, SmtpStatusCode::MailboxBusy = 450, SmtpStatusCode::LocalErrorInProcessing = 451,
  SmtpStatusCode::InsufficientStorage = 452, SmtpStatusCode::ClientNotPermitted = 454, SmtpStatusCode::CommandUnrecognized = 500, SmtpStatusCode::SyntaxError = 501,
  SmtpStatusCode::CommandNotImplemented = 502, SmtpStatusCode::CommandNotPermitted = 503, SmtpStatusCode::UnrecognizedAuthenticationType = 504, SmtpStatusCode::AuthenticationRequired = 530,
  SmtpStatusCode::AuthenticationMechanismIsToWeak = 534, SmtpStatusCode::CredentialsInvalid = 535, SmtpStatusCode::EncryptionRequiredRequestedMechanism = 538, SmtpStatusCode::MailboxUnavailable = 550,
  SmtpStatusCode::UserNotLocalTryAlternatePath = 551, SmtpStatusCode::ExceededStorageAllocation = 552, SmtpStatusCode::MailboxNameNotAllowed = 553, SmtpStatusCode::TransactionFailed = 554
}
 Smtp status codes More...
 

Typedef Documentation

◆ SmtpFailedRecipientException

◆ SmtpFailedRecipientsException

Enumeration Type Documentation

◆ SmtpDeliveryMethod

Smtp delivery method

Enumerator
Network 

Transporting messages through the network

SpecifiedPickupDirectory 

Transporting messages through the specified directory

PickupDirectoryFromIis 

Transporting messages through the specified IIS directory

◆ SmtpKnownAuthenticationType

◆ SmtpStatusCode

Smtp status codes

Enumerator
NotDefined 

Not defined

GeneralFailure 

General failure

SystemStatus 

System status, or system help reply. A SMTP status 211 is a message that gives details about the Mail Server status. In the case of a System Help reply, it is a message to the user requesting help information.

HelpMessage 

A help message for a human reader will follow. SMTP 214 is usually provided as a response to the “HELP” command. A user will usually receive this as a displays of information about the mail server and it will most likely be in the form of a link to the FAQ page of THAT particular SMTP software that is running on the mail server. Due to the nature of this error and how the email server responds, it is normally called a reply, as in SMTP Reply 214.

ServiceReady 

SMTP Service ready.

ServiceClosingTransmissionChannel 

Service closing transmission channel

AuthenticationSucceeded 

Authentication Succeeded

Ok 

Requested action taken and completed.

UserNotLocalWillForward 

The recipient is not local to the server, but the server will accept and forward the message.

CannotVerifyUserWillAttemptDelivery 

The recipient cannot be VRFYed, but the server accepts the message and attempts delivery.

Base64Response 

Text part containing the [BASE64] encoded string

StartMailInput 

Start message input and end with. This indicates that the server is ready to accept the message itself

ServiceNotAvailable 

The service is not available and the connection will be closed.

PasswordTransitionNeeded 

A password transition is needed

MailboxBusy 

The requested command failed because the user’s mailbox was unavailable (such as being full). Try again later.

LocalErrorInProcessing 

The command has been aborted due to a server error. (on their side)

InsufficientStorage 

The command has been aborted because the server has insufficient system storage.

ClientNotPermitted 

Client does not have permission. TLS not available due to temporary reason. Encryption required for requested authentication mechanism.

CommandUnrecognized 

The server could not recognize the command due to a syntax error.

SyntaxError 

A syntax error was encountered in command arguments.

CommandNotImplemented 

This command is not implemented.

CommandNotPermitted 

Сommand is not permitted during a mail transaction

UnrecognizedAuthenticationType 

Unrecognized authentication type

AuthenticationRequired 

The SMTP server requires a secure connection or the client was not authenticated. But sometimes it's about the recipient's server blacklisting yours, or an invalid email address.

AuthenticationMechanismIsToWeak 

Authentication mechanism is to weak

CredentialsInvalid 

Authentication credentials invalid

EncryptionRequiredRequestedMechanism 

Encryption required for requested authentication mechanism

MailboxUnavailable 

It usually defines a non-existent email address on the remote side.

UserNotLocalTryAlternatePath 

"User not local or invalid address – Relay denied". Meaning, if both your address and the recipient's are not locally hosted by the server, a relay can be interrupted.

ExceededStorageAllocation 

"Requested mail actions aborted – Exceeded storage allocation": simply put, the recipient's mailbox has exceeded its limits.

MailboxNameNotAllowed 

"Requested action not taken – Mailbox name invalid". That is, there's an incorrect email address into the recipients line.

TransactionFailed 

This means that the transaction has failed. It's a permanent error and the server will not try to send the message again.