MailSender

High-level implementation of SMTP client.

Constructors

this
this(string host, ushort port, EncryptionMethod encType)

SSL-enabled constructor

this
this(string host, ushort port)

No-SSL constructor

Destructor

~this
~this()

Perform clean shutdown for allocated resources.

Members

Functions

authenticate
SmtpReply authenticate(SmtpAuthType authType, A params)

Perfrom authentication process in one method (high-level) instead of sending AUTH and auth data in several messages.

connect
SmtpReply connect()

Connecting to SMTP server and also trying to get server possibiities in order to expose it via public API.

extension8bitMime
bool extension8bitMime()
Undocumented in source. Be warned that the author may not have intended to support it.
extensionBinaryMime
bool extensionBinaryMime()
Undocumented in source. Be warned that the author may not have intended to support it.
extensionChunking
bool extensionChunking()
Undocumented in source. Be warned that the author may not have intended to support it.
extensionDsn
bool extensionDsn()
Undocumented in source. Be warned that the author may not have intended to support it.
extensionEnhancedStatusCodes
bool extensionEnhancedStatusCodes()
Undocumented in source. Be warned that the author may not have intended to support it.
extensionEtrn
bool extensionEtrn()
Undocumented in source. Be warned that the author may not have intended to support it.
extensionPipelining
bool extensionPipelining()

Server-supported extensions

extensionTls
bool extensionTls()
Undocumented in source. Be warned that the author may not have intended to support it.
extensionVrfy
bool extensionVrfy()
Undocumented in source. Be warned that the author may not have intended to support it.
maxMessageSize
uint maxMessageSize()

Server limits

send
SmtpReply send(SmtpMessage mail)

High-level method for sending messages.

Meta