Sends Messages over SMTP.
package | Swift |
---|---|
subpackage | Transport |
author | Chris Corbyn |
__construct(\Swift_Transport_IoBuffer $buf, \Swift_Events_EventDispatcher $dispatcher)
__destruct()
executeCommand(string $command, int[] $codes, string[] $failures) : string
If no response codes are given, the response will not be validated. If codes are given, an exception will be thrown on an invalid response.
string
int[]
string[]
&$failures
string
getLocalDomain() : string
string
getSourceIp() : string
string
isStarted() : boolean
boolean
registerPlugin(\Swift_Events_EventListener $plugin)
\Swift_Events_EventListener
reset()
send(\Swift_Mime_Message $message, string[] $failedRecipients) : int
Recipient/sender data will be retrieved from the Message API. The return value is the number of recipients who were accepted for delivery.
\Swift_Mime_Message
string[]
&$failedRecipients to collect failures by-reference
int
setLocalDomain(string $domain) : \Swift_Transport_AbstractSmtpTransport
This should be a fully-qualified domain name and should be truly the domain you're using. If your server doesn't have a domain name, use the IP in square brackets (i.e. [127.0.0.1]).
string
setSourceIp(string $source)
string
start()
stop()
_assertResponseCode($response, $wanted)
_doDataCommand()
_doHeloCommand()
_doMailFromCommand($address)
_doRcptToCommand($address)
_getBufferParams()
_getFullResponse($seq)
_getReversePath(\Swift_Mime_Message $message)
_readGreeting()
_streamMessage(\Swift_Mime_Message $message)
_throwException(\Swift_TransportException $e)
_doMailTransaction($message, $reversePath, array $recipients, array $failedRecipients)
_isFqdn($hostname)
_lookupHostname()
_sendBcc(\Swift_Mime_Message $message, $reversePath, array $bcc, array $failedRecipients)
_sendCc(\Swift_Mime_Message $message, $reversePath, array $cc, array $failedRecipients)
_sendTo(\Swift_Mime_Message $message, $reversePath, array $to, array $failedRecipients)
$_buffer
$_domain
$_eventDispatcher
$_sourceIp
$_started