Description
Located in File: /vendors/swiftMailer/classes/Swift/Transport/MailTransport.php
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.
Classes extended from Swift_Transport_MailTransport:
- Swift_MailTransport
- Sends Messages using the mail() function.
Method Detail
Summary:
Constructor __construct (line 47)
Overridden in child classes as:
- Swift_MailTransport::__construct()
- Create a new MailTransport, optionally specifying $extraParams.
Create a new MailTransport with the $log.
Parameters
Info
Method getExtraParams (line 96)
string getExtraParams(
)
Get the additional parameters used on the mail() function.
This string is formatted for sprintf() where %s is the sender address.
Info
Method isStarted (line 57)
void isStarted(
)
Implementation of:
- Swift_Transport::isStarted()
- Test if this Transport mechanism has started.
Not used.
Info
Method send (line 111)
int send(
Swift_Mime_Message
$message, [string[]
&$failedRecipients = null])
Implementation of:
- Swift_Transport::send()
- Send the given Message.
Send the given Message.
Recipient/sender data will be retreived from the Message API. The return value is the number of recipients who were accepted for delivery.
Parameters
- Swift_Mime_Message $message:
- string[] &$failedRecipients: to collect failures by-reference
Info
Method setExtraParams (line 83)
void setExtraParams(
string
$params)
Set the additional parameters used on the mail() function.
This string is formatted for sprintf() where %s is the sender address.
Parameters
Info
Method start (line 65)
void start(
)
Implementation of:
- Swift_Transport::start()
- Start this Transport mechanism.
Not used.
Info
Method stop (line 72)
void stop(
)
Implementation of:
- Swift_Transport::stop()
- Stop this Transport mechanism.
Not used.
Info