PHP Class Swift_Transport_SendmailTransport, Halite

.) binary. Supported modes are -bs and -t, with any additional flags desired. It is advised to use -bs mode since error reporting with -t mode is not possible.
Author: Chris Corbyn
Inheritance: extends Swift_Transport_AbstractSmtpTransport
Afficher le fichier Open project: HaliteChallenge/Halite Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Swift_Transport_IoBuffer $buf, Swift_Events_EventDispatcher $dispatcher ) Create a new SendmailTransport with $buf for I/O.
getCommand ( ) : string Get the sendmail command which will be invoked.
send ( Swift_Mime_Message $message, string[] &$failedRecipients = null ) : integer Send the given Message.
setCommand ( string $command ) : Swift_Transport_SendmailTransport Set the command to invoke.
start ( ) Start the standalone SMTP session if running in -bs mode.

Méthodes protégées

Méthode Description
_getBufferParams ( ) Get the params to initialize the buffer

Method Details

__construct() public méthode

Create a new SendmailTransport with $buf for I/O.
public __construct ( Swift_Transport_IoBuffer $buf, Swift_Events_EventDispatcher $dispatcher )
$buf Swift_Transport_IoBuffer
$dispatcher Swift_Events_EventDispatcher

_getBufferParams() protected méthode

Get the params to initialize the buffer
protected _getBufferParams ( )

getCommand() public méthode

Get the sendmail command which will be invoked.
public getCommand ( ) : string
Résultat string

send() public méthode

Recipient/sender data will be retrieved from the Message API. The return value is the number of recipients who were accepted for delivery. NOTE: If using 'sendmail -t' you will not be aware of any failures until they bounce (i.e. send() will always return 100% success).
public send ( Swift_Mime_Message $message, string[] &$failedRecipients = null ) : integer
$message Swift_Mime_Message
$failedRecipients string[] An array of failures by-reference
Résultat integer

setCommand() public méthode

If using -t mode you are strongly advised to include -oi or -i in the flags. For example: /usr/sbin/sendmail -oi -t Swift will append a -f flag if one is not present. The recommended mode is "-bs" since it is interactive and failure notifications are hence possible.
public setCommand ( string $command ) : Swift_Transport_SendmailTransport
$command string
Résultat Swift_Transport_SendmailTransport

start() public méthode

Start the standalone SMTP session if running in -bs mode.
public start ( )