|Inheritance||Swift_Transport_SendmailTransport » Swift_Transport_AbstractSmtpTransport|
SendmailTransport for sending mail through a Sendmail/Postfix (etc.
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.
|$_buffer||Input-Output buffer for sending/receiving SMTP commands and responses||Swift_Transport_AbstractSmtpTransport|
|$_domain||The domain name to use in HELO command||Swift_Transport_AbstractSmtpTransport|
|$_eventDispatcher||The event dispatching layer||Swift_Transport_AbstractSmtpTransport|
Create a new SendmailTransport with $buf for I/O.
|public void __construct ( Swift_Transport_IoBuffer $buf, Swift_Events_EventDispatcher $dispatcher )|
Get the params to initialize the buffer
|protected void _getBufferParams ( )|
Get the sendmail command which will be invoked.
|public string getCommand ( )|
Send the given Message.
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 int send ( Swift_Mime_Message $message, <b>&</b>$failedRecipients = null )|
An array of failures by-reference
Set the command to invoke.
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
The recommended mode is "-bs" since it is interactive and failure notifications are hence possible.
|public Swift_Transport_SendmailTransport setCommand ( $command )|
Start the standalone SMTP session if running in -bs mode.
|public void start ( )|