SmtpClient

One SmtpClient instance connects, sends one message, and disconnects.

Constructors

this
this(Logger log, string localDomain, string server, ushort port)
Undocumented in source.

Members

Enums

State
enum State

Current connection state.

Functions

sendMessage
void sendMessage(string from, string to, string[] data)

Send a message. from and to are the envelope MAIL FROM and RCPT TO addresses.

Properties

state
State state [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

handleError
void delegate(string message) handleError;

Called on error.

handleSent
void delegate() handleSent;

Called when the message is successfully sent.

handleStateChanged
void delegate() handleStateChanged;

Called when state changes.

Meta