class MailerFactory

Class MailerFactory

Methods

__construct( EventDispatcherInterface $dispatcher, ParserInterface $parser)

No description

send( Swift_Mime_Message $message, $failedRecipients = null)

No description

getSwiftMailer()

No description

sendEmailToCustomer( string $messageCode, Customer $customer, array $messageParameters = array())

Send a message to the customer.

sendEmailToShopManagers( string $messageCode, array $messageParameters = array(), array $replyTo = array())

Send a message to the shop managers.

sendEmailMessage( string $messageCode, array $from, array $to, array $messageParameters = array(), string $locale = null, array $cc = array(), array $bcc = array(), array $replyTo = array())

Send a message to the customer.

Swift_Message
createEmailMessage( string $messageCode, array $from, array $to, array $messageParameters = array(), string $locale = null, array $cc = array(), array $bcc = array(), array $replyTo = array())

Create a SwiftMessage instance from a given message code.

Details

at line 41
__construct( EventDispatcherInterface $dispatcher, ParserInterface $parser)

Parameters

EventDispatcherInterface $dispatcher
ParserInterface $parser

at line 88
send( Swift_Mime_Message $message, $failedRecipients = null)

Parameters

Swift_Mime_Message $message
$failedRecipients

at line 93
getSwiftMailer()

at line 105
sendEmailToCustomer( string $messageCode, Customer $customer, array $messageParameters = array())

Send a message to the customer.

Parameters

string $messageCode
Customer $customer
array $messageParameters an array of (name => value) parameters that will be available in the message.

at line 126
sendEmailToShopManagers( string $messageCode, array $messageParameters = array(), array $replyTo = array())

Send a message to the shop managers.

Parameters

string $messageCode
array $messageParameters an array of (name => value) parameters that will be available in the message.
array $replyTo Reply to addresses. An array of (email-address => name) [optional]

at line 161
sendEmailMessage( string $messageCode, array $from, array $to, array $messageParameters = array(), string $locale = null, array $cc = array(), array $bcc = array(), array $replyTo = array())

Send a message to the customer.

Parameters

string $messageCode
array $from From addresses. An array of (email-address => name)
array $to To addresses. An array of (email-address => name)
array $messageParameters an array of (name => value) parameters that will be available in the message.
string $locale If null, the default store locale is used.
array $cc Cc addresses. An array of (email-address => name) [optional]
array $bcc Bcc addresses. An array of (email-address => name) [optional]
array $replyTo Reply to addresses. An array of (email-address => name) [optional]

at line 207
Swift_Message createEmailMessage( string $messageCode, array $from, array $to, array $messageParameters = array(), string $locale = null, array $cc = array(), array $bcc = array(), array $replyTo = array())

Create a SwiftMessage instance from a given message code.

Parameters

string $messageCode
array $from From addresses. An array of (email-address => name)
array $to To addresses. An array of (email-address => name)
array $messageParameters an array of (name => value) parameters that will be available in the message.
string $locale If null, the default store locale is used.
array $cc Cc addresses. An array of (email-address => name) [optional]
array $bcc Bcc addresses. An array of (email-address => name) [optional]
array $replyTo Reply to addresses. An array of (email-address => name) [optional]

Return Value

Swift_Message the generated and built message.