class MailerHelper extends Helper (View source)

MailerHelper.

Properties

protected $mailer

Methods

__construct(Swift_Mailer $mailer)

No description

string
getName()

No description

int
send(Swift_Mime_Message $message, array $failedRecipients = null)

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

Details

__construct(Swift_Mailer $mailer)

Parameters

Swift_Mailer $mailer

string getName()

Return Value

string

int send(Swift_Mime_Message $message, array $failedRecipients = null)

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

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

Swift_Mime_Message $message
array $failedRecipients An array of failures by-reference

Return Value

int