Sends Messages using the mail() function.
It is advised that users do not use this transport if at all possible since a number of plugin features cannot be used in conjunction with this transport due to the internal interface in PHP itself.
The level of error reporting with this transport is incredibly weak, again due to limitations of PHP's internal mail() function. You'll get an all-or-nothing result from sending.
package | Swift |
---|---|
subpackage | Transport |
author | Chris Corbyn |
__construct(\Swift_Transport_MailInvoker $invoker, \Swift_Events_EventDispatcher $eventDispatcher)
getExtraParams() : string
This string is formatted for sprintf() where %s is the sender address.
string
isStarted() : boolean
boolean
registerPlugin(\Swift_Events_EventListener $plugin)
\Swift_Events_EventListener
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
setExtraParams(string $params) : \Swift_Transport_MailTransport
This string is formatted for sprintf() where %s is the sender address.
string
start()
stop()
_getReversePath(\Swift_Mime_Message $message)
$_eventDispatcher
$_extraParams
$_invoker