Methods

All methods in the Solar_Smtp_Adapter class.

Public

__construct()

Constructor.

__destruct()

Disconnects from the SMTP server if needed.

auth()

Issues SMTP AUTH (if not already issued) and returns success indicator.

connect()

Connects to the SMTP server and sets the timeout.

data()

Issues SMTP DATA to send the email message itself.

disconnect()

Issues SMTP QUIT and disconnects from the SMTP server.

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

getCrlf()

Returns the line-ending string.

getLog()

Returns the connection log.

helo()

Issues HELO/EHLO sequence to starts the session.

isConnected()

Are we currently connected to the server?

locale()

Looks up class-specific locale strings based on a key.

mail()

Issues SMTP MAIL FROM to indicate who the message is from.

noop()

Issues SMTP NOOP to keep the connection alive (or check the connection).

quit()

Issues SMTP QUIT to end the current session.

rcpt()

Issues SMTP RCPT TO to indicate who the message is to.

resetLog()

Clears the connection log.

rset()

Issues SMTP RSET to reset the connection and clear transaction flags.

setCrlf()

Sets the line-ending string.

vrfy()

Issues SMTP VRFY to verify a username or email address at the server.

Protected

_buildConfig()

Builds and returns the default config for a class, including all configs inherited from its parents.

_ehlo()

Send EHLO or HELO, depending on SMTP host capability.

_exception()

Convenience method for returning exceptions with localized text.

_expect()

Receive lines from the SMTP server and look for an expected response code.

_postConfig()

A hook that activates after _buildConfig() in the constructor.

_postConstruct()

Post-construction tasks to complete object construction.

_preConfig()

A hook that activates before _buildConfig() in the constructor.

_recv()

Receives a response line from the SMTP server.

_send()

Sends a request line to the SMTP server.

Private

None.



Local