\Swift_Transport_MailTransport
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.
- Author: Chris Corbyn
Synopsis
class Swift_Transport_MailTransport
implements
Swift_Transport
{
- // members
- private string $_extraParams;
- private $_eventDispatcher;
- private $_invoker;
- // methods
- public void __construct()
- public void isStarted()
- public void start()
- public void stop()
- public Swift_Transport_MailTransport setExtraParams()
- public string getExtraParams()
- public int send()
- public void registerPlugin()
- private void _getReversePath()
Hierarchy
Members
private
-
$_eventDispatcher
The event dispatcher from the plugin API -
$_extraParams
Additional parameters to pass to mail() -
$_invoker
An invoker that calls the mail() function
Methods
private
- _getReversePath() — Determine the best-use reverse path for this message
public
- __construct() — Create a new MailTransport with the $log.
- getExtraParams() — Get the additional parameters used on the mail() function.
- isStarted() — Not used.
- registerPlugin() — Register a plugin.
- send() — Send the given Message.
- setExtraParams() — Set the additional parameters used on the mail() function.
- start() — Not used.
- stop() — Not used.