Beta version

class EmailManager

Class EmailManager

Methods

__construct(Request $request, TranslatorInterface $translator, Twig_Environment $templating, Swift_Mailer $mailer)

EmailManager constructor.

string
renderHtmlEmailBody()

No description

string
renderHtmlEmailBodyWithCss()

No description

string
renderPlainTextEmailBody()

No description

appendWebsiteIcon()

Added mainColor and headerImageSrc assignation to display email header.

Swift_Message
createMessage()

No description

int
send()

Send email.

null|string
getSubject()

No description

setSubject(null|string $subject)

No description

null|string
getEmailTitle()

No description

setEmailTitle(null|string $emailTitle)

No description

null|array|string
getReceiver()

Message destination email(s).

null|string
getReceiverEmail()

Return only one email as string.

setReceiver(string|array $receiver)

Sets the value of receiver.

null|string
getSender()

Message virtual sender email.

null|string
getSenderEmail()

Return only one email as string.

setSender(string|array $sender)

Sets the value of sender.

string
getSuccessMessage()

No description

setSuccessMessage(string $successMessage)

No description

string
getFailMessage()

No description

setFailMessage(string $failMessage)

No description

TranslatorInterface
getTranslator()

No description

setTranslator(TranslatorInterface $translator)

No description

Twig_Environment
getTemplating()

No description

setTemplating(Twig_Environment $templating)

No description

Swift_Mailer
getMailer()

No description

setMailer(Swift_Mailer $mailer)

No description

string|null
getEmailTemplate()

No description

setEmailTemplate(string|null $emailTemplate = null)

No description

string|null
getEmailPlainTextTemplate()

No description

setEmailPlainTextTemplate(string|null $emailPlainTextTemplate = null)

No description

string|null
getEmailStylesheet()

No description

setEmailStylesheet(string|null $emailStylesheet = null)

No description

Request
getRequest()

No description

setRequest(Request $request)

No description

null|string
getOrigin()

Origin is the real From enveloppe.

setOrigin(string $origin)

No description

array
getAssignation()

No description

setAssignation(array $assignation)

No description

Details

at line 108
__construct(Request $request, TranslatorInterface $translator, Twig_Environment $templating, Swift_Mailer $mailer)

EmailManager constructor.

Parameters

Request $request
TranslatorInterface $translator
Twig_Environment $templating
Swift_Mailer $mailer

at line 130
string renderHtmlEmailBody()

Return Value

string

at line 138
string renderHtmlEmailBodyWithCss()

Return Value

string

at line 155
string renderPlainTextEmailBody()

Return Value

string

at line 166
EmailManager appendWebsiteIcon()

Added mainColor and headerImageSrc assignation to display email header.

Return Value

EmailManager

at line 187
Swift_Message createMessage()

Return Value

Swift_Message

at line 223
int send()

Send email.

Return Value

int

Exceptions

RuntimeException

at line 240
null|string getSubject()

Return Value

null|string

at line 249
EmailManager setSubject(null|string $subject)

Parameters

null|string $subject

Return Value

EmailManager

at line 258
null|string getEmailTitle()

Return Value

null|string

at line 267
EmailManager setEmailTitle(null|string $emailTitle)

Parameters

null|string $emailTitle

Return Value

EmailManager

at line 278
null|array|string getReceiver()

Message destination email(s).

Return Value

null|array|string

at line 288
null|string getReceiverEmail()

Return only one email as string.

Return Value

null|string

at line 306
EmailManager setReceiver(string|array $receiver)

Sets the value of receiver.

Parameters

string|array $receiver the receiver

Return Value

EmailManager

Exceptions

Exception

at line 332
null|string getSender()

Message virtual sender email.

This email will be used as ReplyTo: and ReturnPath:

Return Value

null|string

at line 342
null|string getSenderEmail()

Return only one email as string.

Return Value

null|string

at line 359
EmailManager setSender(string|array $sender)

Sets the value of sender.

Parameters

string|array $sender the sender

Return Value

EmailManager

Exceptions

Exception

at line 381
string getSuccessMessage()

Return Value

string

at line 390
EmailManager setSuccessMessage(string $successMessage)

Parameters

string $successMessage

Return Value

EmailManager

at line 399
string getFailMessage()

Return Value

string

at line 408
EmailManager setFailMessage(string $failMessage)

Parameters

string $failMessage

Return Value

EmailManager

at line 417
TranslatorInterface getTranslator()

Return Value

TranslatorInterface

at line 426
EmailManager setTranslator(TranslatorInterface $translator)

Parameters

TranslatorInterface $translator

Return Value

EmailManager

at line 435
Twig_Environment getTemplating()

Return Value

Twig_Environment

at line 444
EmailManager setTemplating(Twig_Environment $templating)

Parameters

Twig_Environment $templating

Return Value

EmailManager

at line 453
Swift_Mailer getMailer()

Return Value

Swift_Mailer

at line 462
EmailManager setMailer(Swift_Mailer $mailer)

Parameters

Swift_Mailer $mailer

Return Value

EmailManager

at line 471
string|null getEmailTemplate()

Return Value

string|null

at line 480
EmailManager setEmailTemplate(string|null $emailTemplate = null)

Parameters

string|null $emailTemplate

Return Value

EmailManager

at line 489
string|null getEmailPlainTextTemplate()

Return Value

string|null

at line 498
EmailManager setEmailPlainTextTemplate(string|null $emailPlainTextTemplate = null)

Parameters

string|null $emailPlainTextTemplate

Return Value

EmailManager

at line 507
string|null getEmailStylesheet()

Return Value

string|null

at line 516
EmailManager setEmailStylesheet(string|null $emailStylesheet = null)

Parameters

string|null $emailStylesheet

Return Value

EmailManager

at line 525
Request getRequest()

Return Value

Request

at line 534
EmailManager setRequest(Request $request)

Parameters

Request $request

Return Value

EmailManager

at line 548
null|string getOrigin()

Origin is the real From enveloppe.

This must be an email address with a know domain name to be validated on your SMTP server.

Return Value

null|string

at line 559
EmailManager setOrigin(string $origin)

Parameters

string $origin

Return Value

EmailManager

at line 572
array getAssignation()

Return Value

array

at line 581
EmailManager setAssignation(array $assignation)

Parameters

array $assignation

Return Value

EmailManager