[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/Swiftmailer/classes/Swift/Transport/ -> SendmailTransport.php (summary)

(no description)

File Size: 159 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Swift_Transport_SendmailTransport:: (6 methods):
  __construct()
  start()
  setCommand()
  getCommand()
  send()
  _getBufferParams()


Class: Swift_Transport_SendmailTransport  - X-Ref

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.

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

param: Swift_Transport_IoBuffer     $buf
param: Swift_Events_EventDispatcher $dispatcher

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


setCommand($command)   X-Ref
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.

param: string $command
return: Swift_Transport_SendmailTransport

getCommand()   X-Ref
Get the sendmail command which will be invoked.

return: string

send(Swift_Mime_Message $message, &$failedRecipients = null)   X-Ref
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).

param: Swift_Mime_Message $message
param: string[]           $failedRecipients An array of failures by-reference
return: int

_getBufferParams()   X-Ref
No description



Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1