\Swift_Transport_AbstractSmtpTransport
Sends Messages over SMTP.
- Author: Chris Corbyn
Synopsis
class Swift_Transport_AbstractSmtpTransport
implements
Swift_Transport
{
- // members
- protected $_buffer;
- protected $_started;
- protected string $_domain;
- protected $_eventDispatcher;
- protected $_sourceIp;
- // methods
- 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()
- private void _doMailTransaction()
- private void _sendTo()
- private void _sendCc()
- private void _sendBcc()
- private void _lookupHostname()
- private void _isFqdn()
- public void __destruct()
Hierarchy
Extended by
- Swift_Transport_SendmailTransport
- Swift_Transport_EsmtpTransport
- Swift_SendmailTransport
- Swift_SmtpTransport
Implements
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
private
- _doMailTransaction() — Send an email to the given recipients from the given reverse path
- _isFqdn() — Determine is the $hostname is a fully-qualified name
- _lookupHostname() — Try to determine the hostname of the server this is run on
- _sendBcc() — Send a message to all Bcc: recipients
- _sendCc() — Send a message to the given Cc: recipients
- _sendTo() — Send a message to the given To: recipients
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
- __construct() — Creates a new EsmtpTransport using the given I/O buffer.
- __destruct() — Destructor.
- 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.