SendMail
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)
at line 117
array|null
getSender()
at line 125
setSender(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
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
at line 257
sendEmailMessage(string $template, string $fromEmail, string $toEmail)
Send email
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 = [])
at line 388
sendConfirmationEmailMessage(UserInterface $user)
{@inheritdoc}
at line 442
sendResettingEmailMessage(UserInterface $user)
{@inheritdoc}