[ Index ]

MailPress 544

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

title

Body

[close]

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

(no description)

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

Defines 1 class

Swift_Transport_MailTransport:: (10 methods):
  __construct()
  isStarted()
  start()
  stop()
  setExtraParams()
  getExtraParams()
  send()
  registerPlugin()
  _throwException()
  _getReversePath()


Class: Swift_Transport_MailTransport  - X-Ref

Sends Messages using the mail() function.

It is advised that users do not use this transport if at all possible
since a number of plugin features cannot be used in conjunction with this
transport due to the internal interface in PHP itself.

The level of error reporting with this transport is incredibly weak, again
due to limitations of PHP's internal mail() function.  You'll get an
all-or-nothing result from sending.

__construct(Swift_Transport_MailInvoker $invoker, Swift_Events_EventDispatcher $eventDispatcher)   X-Ref
Create a new MailTransport with the $log.

param: Swift_Transport_MailInvoker  $invoker
param: Swift_Events_EventDispatcher $eventDispatcher

isStarted()   X-Ref
Not used.


start()   X-Ref
Not used.


stop()   X-Ref
Not used.


setExtraParams($params)   X-Ref
Set the additional parameters used on the mail() function.

This string is formatted for sprintf() where %s is the sender address.

param: string $params
return: Swift_Transport_MailTransport

getExtraParams()   X-Ref
Get the additional parameters used on the mail() function.

This string is formatted for sprintf() where %s is the sender address.

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.

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

registerPlugin(Swift_Events_EventListener $plugin)   X-Ref
Register a plugin.

param: Swift_Events_EventListener $plugin

_throwException(Swift_TransportException $e)   X-Ref
No description

_getReversePath(Swift_Mime_Message $message)   X-Ref
No description



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