class SmtpAdapter implements MailAdapterInterface (View source)

Constants

private SMTP_READY

SMTP response codes

private SMTP_OK

private SMTP_AUTH_CONTINUE

private SMTP_AUTH_SUCCESS

private SMTP_DATA_START

private SMTP_QUIT

Methods

__construct(array $config)

SmtpAdapter Constructor

bool
send(Envelop $envelop)

Send email via SMTP

__destruct()

Destructor - ensure connection is closed

Details

__construct(array $config)

SmtpAdapter Constructor

Parameters

array $config

SMTP configuration array

Exceptions

MailException

bool send(Envelop $envelop)

Send email via SMTP

Parameters

Envelop $envelop

Return Value

bool

Exceptions

SocketException
SmtpException
MailException
ErrorException

__destruct()

Destructor - ensure connection is closed