\Swift_SendmailTransport
SendmailTransport for sending mail through a Sendmail/Postfix (etc..) binary.
- Author: Chris Corbyn
Synopsis
class Swift_SendmailTransport
extends Swift_Transport_SendmailTransport
{
- // Inherited members from Swift_Transport_AbstractSmtpTransport
- protected $_buffer;
- protected $_started;
- protected string $_domain;
- protected $_eventDispatcher;
- protected $_sourceIp;
- // methods
- public void __construct()
- public static Swift_SendmailTransport newInstance()
- // Inherited methods from Swift_Transport_SendmailTransport
- public void __construct()
- public void start()
- public Swift_Transport_SendmailTransport setCommand()
- public string getCommand()
- public int send()
- protected void _getBufferParams()
- // Inherited methods from Swift_Transport_AbstractSmtpTransport
- protected abstract void _getBufferParams()
- public void __construct()
- public Swift_Transport_AbstractSmtpTransport setLocalDomain()
- public string getLocalDomain()
- public void setSourceIp()
- public string getSourceIp()
- public void start()
- public boolean isStarted()
- public int send()
- public void stop()
- public void registerPlugin()
- public void reset()
- public Swift_Transport_IoBuffer getBuffer()
- public string executeCommand()
- protected void _readGreeting()
- protected void _doHeloCommand()
- protected void _doMailFromCommand()
- protected void _doRcptToCommand()
- protected void _doDataCommand()
- protected void _streamMessage()
- protected void _getReversePath()
- protected void _throwException()
- protected void _assertResponseCode()
- protected void _getFullResponse()
- public void __destruct()
Hierarchy
Members
protected
-
$_buffer
Input-Output buffer for sending/receiving SMTP commands and responses -
$_domain
The domain name to use in HELO command -
$_eventDispatcher
The event dispatching layer -
$_sourceIp
Source Ip -
$_started
Connection status
Methods
public
- __construct() — Create a new SendmailTransport, optionally using $command for sending.
- newInstance() — Create a new SendmailTransport instance.
Inherited from Swift_Transport_SendmailTransport
protected
- _getBufferParams() — Get the params to initialize the buffer
public
- getCommand() — Get the sendmail command which will be invoked.
- send() — Send the given Message.
- setCommand() — Set the command to invoke.
- start() — Start the standalone SMTP session if running in -bs mode.
Inherited from Swift_Transport_AbstractSmtpTransport
protected
- _assertResponseCode() — Throws an Exception if a response code is incorrect
- _doDataCommand() — Send the DATA command
- _doHeloCommand() — Send the HELO welcome
- _doMailFromCommand() — Send the MAIL FROM command
- _doRcptToCommand() — Send the RCPT TO command
- _getBufferParams() — Return an array of params for the Buffer
- _getFullResponse() — Get an entire multi-line response using its sequence number
- _getReversePath() — Determine the best-use reverse path for this message
- _readGreeting() — Read the opening SMTP greeting
- _streamMessage() — Stream the contents of the message over the buffer
- _throwException() — Throw a TransportException, first sending it to any listeners
public
- executeCommand() — Run a command against the buffer, expecting the given response codes.
- getBuffer() — Get the IoBuffer where read/writes are occurring.
- getLocalDomain() — Get the name of the domain Swift will identify as.
- getSourceIp() — Returns the IP used to connect to the destination
- isStarted() — Test if an SMTP connection has been established.
- registerPlugin() — Register a plugin.
- reset() — Reset the current mail transaction.
- send() — Send the given Message.
- setLocalDomain() — Set the name of the local domain which Swift will identify itself as.
- setSourceIp() — Sets the source IP.
- start() — Start the SMTP connection.
- stop() — Stop the SMTP connection.