class SendMail implements MailerInterface

Class SendMail handles sending mails from shop

Properties

protected Swift_Mailer $mailer
protected UrlGeneratorInterface $router
protected Twig_Environment $twig
protected array|null $sender

Methods

__construct(Swift_Mailer $mailer, EngineInterface $templateEngine, PDFGenerator $pdfGenerator, UrlGeneratorInterface $router, Twig_Environment $twig, string $senderMail, string $senderAlias, EventDispatcherInterface $dispatcher, TranslatorInterface $translator)

No description

array|null
getSender()

No description

setSender(array|null $sender)

No description

sendOrderSuccessMail(Order $order, string $action = 'new', array $to = array(), string $currentTheme = null, null $cardOrderInfo = null, array $bcc = array(), array $context = [])

Send success order mail(with pdf file) to provided users

sendConfirmationMail(mixed $message, array $to = array(), mixed $type = null, mixed $subject = null, array $bcc = array(), mixed $entity = null)

Send confirmation mail to provided user

sendEmailMessage(string $template, string $fromEmail, string $toEmail)

Send email

sendSwiftMessage(mixed $templateName, mixed $fromEmail, mixed $toEmail, array $context = array(), mixed|null $attachment = null, string|null $theme = null, mixed|null $plugin = null, mixed|null $entity = null, array $bcc = [])

No description

sendConfirmationEmailMessage(UserInterface $user)

{@inheritdoc}

sendResettingEmailMessage(UserInterface $user)

{@inheritdoc}

Details

at line 96
__construct(Swift_Mailer $mailer, EngineInterface $templateEngine, PDFGenerator $pdfGenerator, UrlGeneratorInterface $router, Twig_Environment $twig, string $senderMail, string $senderAlias, EventDispatcherInterface $dispatcher, TranslatorInterface $translator)

Parameters

Swift_Mailer $mailer
EngineInterface $templateEngine
PDFGenerator $pdfGenerator
UrlGeneratorInterface $router
Twig_Environment $twig
string $senderMail
string $senderAlias
EventDispatcherInterface $dispatcher
TranslatorInterface $translator

at line 117
array|null getSender()

Return Value

array|null

at line 125
setSender(array|null $sender)

Parameters

array|null $sender

at line 142
sendOrderSuccessMail(Order $order, string $action = 'new', array $to = array(), string $currentTheme = null, null $cardOrderInfo = null, array $bcc = array(), array $context = [])

Send success order mail(with pdf file) to provided users

Parameters

Order $order
string $action
array $to
string $currentTheme
null $cardOrderInfo
array $bcc
array $context

Exceptions

Exception

at line 219
sendConfirmationMail(mixed $message, array $to = array(), mixed $type = null, mixed $subject = null, array $bcc = array(), mixed $entity = null)

Send confirmation mail to provided user

Parameters

mixed $message
array $to
mixed $type
mixed $subject
array $bcc
mixed $entity

at line 257
sendEmailMessage(string $template, string $fromEmail, string $toEmail)

Send email

Parameters

string $template
string $fromEmail
string $toEmail

at line 286
sendSwiftMessage(mixed $templateName, mixed $fromEmail, mixed $toEmail, array $context = array(), mixed|null $attachment = null, string|null $theme = null, mixed|null $plugin = null, mixed|null $entity = null, array $bcc = [])

Parameters

mixed $templateName
mixed $fromEmail
mixed $toEmail
array $context
mixed|null $attachment
string|null $theme
mixed|null $plugin
mixed|null $entity
array $bcc

at line 388
sendConfirmationEmailMessage(UserInterface $user)

{@inheritdoc}

Parameters

UserInterface $user

at line 442
sendResettingEmailMessage(UserInterface $user)

{@inheritdoc}

Parameters

UserInterface $user