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
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/Transport/SendmailTransport.php
Methods summary
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<sender> flag if one is not present. The recommended mode is "-bs" since it is interactive and failure notifications are hence possible. |
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
|
Methods inherited from Swift_Transport_AbstractSmtpTransport
__destruct()
,
_assertResponseCode()
,
_doDataCommand()
,
_doHeloCommand()
,
_doMailFromCommand()
,
_doRcptToCommand()
,
_getFullResponse()
,
_getReversePath()
,
_readGreeting()
,
_streamMessage()
,
_throwException()
,
executeCommand()
,
getBuffer()
,
getLocalDomain()
,
getSourceIp()
,
isStarted()
,
registerPlugin()
,
reset()
,
setLocalDomain()
,
setSourceIp()
,
stop()
Magic methods summary
Properties summary
private
array
|
$_params |
#
Connection buffer parameters. |
Properties inherited from Swift_Transport_AbstractSmtpTransport
$_buffer
,
$_domain
,
$_eventDispatcher
,
$_sourceIp
,
$_started