Overview

Abstract SMTP adapter.

Heavily modified and refactored from the Zend_Protocol_Smtp package and related classes.

Concrete classes should implement the auth() method.

Package

This class is part of the Solar_Smtp package.

Inheritance:

Configuration Keys

  • host: The SMTP host to connect to.

  • port: Connect to the SMTP host on this port.

  • crlf: The CRLF string to use at the end of each line.

  • secure: The security protocol for the connection, if any (e.g., 'ssl' or 'tls').

  • client: Use this as the client address making the SMTP request.

  • flags: The stream connection flags to use.

  • context: The stream context to use, if any.

Constants

None.

Public Properties

The Solar_Smtp_Adapter class has no public properties; try the list of all properties.

Public Methods

These are all the public methods in the Solar_Smtp_Adapter class.

You can also view the list of all public, protected, and private methods.

__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.



Local