Zend\Mail\Transport\Smtp
SMTP connection object
Loads an instance of Zend\Mail\Protocol\Smtp and forwards smtp transactions
Synopsis
class Smtp
implements
TransportInterface
{
- // members
- protected SmtpOptions $options;
- protected Smtp $connection;
- protected bool $autoDisconnect;
- protected SmtpPluginManager $plugins;
- // methods
- public void __construct()
- public Smtp setOptions()
- public SmtpOptions getOptions()
- public Smtp setPluginManager()
- public SmtpPluginManager getPluginManager()
- public Smtp setAutoDisconnect()
- public bool getAutoDisconnect()
- public Smtp plugin()
- public void __destruct()
- public void setConnection()
- public Smtp getConnection()
- public void disconnect()
- public void send()
- protected string prepareFromAddress()
- protected array prepareRecipients()
- protected string prepareHeaders()
- protected string prepareBody()
- protected Smtp lazyLoadConnection()
- protected Smtp connect()
Hierarchy
Implements
Members
protected
- $autoDisconnect — Zend\Mail\Transport\bool
- $connection — Zend\Mail\Transport\Protocol\Smtp
- $options — Zend\Mail\Transport\SmtpOptions
- $plugins — Zend\Mail\Transport\Protocol\SmtpPluginManager
Methods
protected
- connect() — Connect the connection, and pass it helo
- lazyLoadConnection() — Lazy load the connection
- prepareBody() — Prepare body string from message
- prepareFromAddress() — Retrieve email address for envelope FROM
- prepareHeaders() — Prepare header string from message
- prepareRecipients() — Prepare array of email address recipients
public
- __construct() — Constructor.
- __destruct() — Class destructor to ensure all open connections are closed
- disconnect() — Disconnect the connection protocol instance
- getAutoDisconnect() — Get the automatic disconnection value
- getConnection() — Gets the connection protocol instance
- getOptions() — Get options
- getPluginManager() — Get plugin manager for loading SMTP protocol connection
- plugin() — Return an SMTP connection
- send() — Send an email via the SMTP connection protocol
- setAutoDisconnect() — Set the automatic disconnection when destruct
- setConnection() — Sets the connection protocol instance
- setOptions() — Set options
- setPluginManager() — Set plugin manager for obtaining SMTP protocol connection