Swift Mailer class.

package Swift
author Chris Corbyn

 Methods

Create a new Mailer using $transport for delivery.

__construct(\Swift_Transport $transport) 

Parameters

$transport

\Swift_Transport

Create a new class instance of one of the message services For example 'mimepart' would create a 'message.mimepart' instance

createMessage(string $service) : object

Parameters

$service

string

Returns

object

The Transport used to send messages.

getTransport() : \Swift_Transport

Create a new Mailer instance.

newInstance(\Swift_Transport $transport) : \Swift_Mailer
Static

Parameters

$transport

\Swift_Transport

Returns

Register a plugin using a known unique key (e.g.

registerPlugin(\Swift_Events_EventListener $plugin) 

myPlugin).

Parameters

Send the given Message like it would be sent in a mail client.

send(\Swift_Mime_Message $message, array $failedRecipients) : int

All recipients (with the exception of Bcc) will be able to see the other recipients this message was sent to.

Recipient/sender data will be retrieved from the Message object.

The return value is the number of recipients who were accepted for delivery.

Parameters

$failedRecipients

array

&$failedRecipients, optional

Returns

int

 Properties

 

$_transport