Class Swift_Transport_SendmailTransport
SendmailTransport for sending mail through a sendmail/postfix (etc..) 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.
- Swift_Transport_AbstractSmtpTransport implements Swift_Transport
-
Swift_Transport_SendmailTransport
Direct known subclasses
Swift_SendmailTransportAuthor: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Transport/SendmailTransport.php
public
|
#
__construct(
Create a new SendmailTransport with $buf for I/O. |
public
|
|
public
|
#
setCommand( string $command )
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 |
public
string
|
|
public
integer
|
#
send(
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). |
protected
|
private
array
|
$_params
Connection buffer parameters. |
#
array(
'timeout' => 30,
'blocking' => 1,
'command' => '/usr/sbin/sendmail -bs',
'type' => Swift_Transport_IoBuffer::TYPE_PROCESS
)
|
$_buffer,
$_domain,
$_eventDispatcher,
$_sourceIp,
$_started
|