Logidav Docs

MailerService
in package

Table of Contents

Constants

MAIL_SOURCES_DATA_MAPPING  = ['Mosaikasa' => ['email_sent_from' => 'contact@mosaikasa.com', 'email_templates' => ['AppBundle:Emails:PreparedProducts/MosaikasaPreparedProductsEmail.html.twig', 'AsirGroupBundle:Sale:mosaikasaBrokenPackagesCustomerEmail.html.twig', 'AppBundle:Idf:_emails/mosaikasaBonIdf.html.twig', 'AppBundle:Sale:_emails/mosaikasaDeliveryNotif.html.twig', 'AppBundle:Sale:_emails/mosaikasaDeliveryNotifTomorrow.html.twig', 'AppBundle:Sale:_emails/mosaikasaProductEnd.html.twig', 'AppBundle:Sale:_emails/mosaikasaProductDelay.html.twig', 'AppBundle:Sale:_emails/mosaikasaProductDelayRetardP.html.twig', 'AppBundle:Emails:PreparedProducts/MosaikasaCarrierReceivedProductsEmail.html.twig', "AppBundle:UpStairs:_emails/mosaikasaBonUpStairs.html.twig", 'AppBundle:Refund:refundMailMosaikasa.html.twig', 'AppBundle:Sale:_emails/mosaikasaProductEmailRetarded.html.twig', 'AppBundle:Emails:PreparedProducts/MosaikasaAsirPreparedProductsEmail.html.twig']], 'Menzzo' => ['email_sent_from' => 'contact@menzzo.fr', 'email_templates' => ['AppBundle:Emails:PreparedProducts/MenzzoAndAsirInternalStockPreparedProductsEmail.html.twig', 'AsirGroupBundle:Sale:brokenPackagesCustomerEmail.html.twig', 'AppBundle:Idf:_emails/bon_idf.html.twig', 'AppBundle:Sale:_emails/deliveryNotif.html.twig', 'AppBundle:Sale:_emails/deliveryNotifTomorrow.html.twig', 'AppBundle:Sale:_emails/productEnd.html.twig', 'AppBundle:Sale:_emails/productDelay.html.twig', 'AppBundle:Sale:_emails/productDelayRetardP.html.twig', "AppBundle:Emails:PreparedProducts/CarrierReceivedProductsEmail.html.twig", "AppBundle:UpStairs:_emails/bon_up_stairs.html.twig", 'AppBundle:Refund:refundMail.html.twig', 'AppBundle:Sale:_emails/productDelayRetarded.html.twig', "AppBundle:Emails:PreparedProducts/AsirPreparedProductsEmail.html.twig"]], 'Lengow' => ['email_sent_from' => 'alert@menzzo.fr', 'email_templates' => ['ErpBundle:Emails:Lengow/lengowOrderIssuesAlertEmail.html.twig']]]

Properties

$container  : mixed

Methods

__construct()  : mixed
dispatchEmail()  : bool
send()  : bool
sendByfrontApp()  : mixed
sendProductDelay()  : bool
sendProductDelayRetarded()  : bool
sendProductDelayRetardP()  : bool
sendProductEnd()  : array<string|int, mixed>|bool
mapFrontAppUserEmail()  : string
Maps specific user email addresses to alternative email addresses.

Constants

MAIL_SOURCES_DATA_MAPPING

public mixed MAIL_SOURCES_DATA_MAPPING = ['Mosaikasa' => ['email_sent_from' => 'contact@mosaikasa.com', 'email_templates' => ['AppBundle:Emails:PreparedProducts/MosaikasaPreparedProductsEmail.html.twig', 'AsirGroupBundle:Sale:mosaikasaBrokenPackagesCustomerEmail.html.twig', 'AppBundle:Idf:_emails/mosaikasaBonIdf.html.twig', 'AppBundle:Sale:_emails/mosaikasaDeliveryNotif.html.twig', 'AppBundle:Sale:_emails/mosaikasaDeliveryNotifTomorrow.html.twig', 'AppBundle:Sale:_emails/mosaikasaProductEnd.html.twig', 'AppBundle:Sale:_emails/mosaikasaProductDelay.html.twig', 'AppBundle:Sale:_emails/mosaikasaProductDelayRetardP.html.twig', 'AppBundle:Emails:PreparedProducts/MosaikasaCarrierReceivedProductsEmail.html.twig', "AppBundle:UpStairs:_emails/mosaikasaBonUpStairs.html.twig", 'AppBundle:Refund:refundMailMosaikasa.html.twig', 'AppBundle:Sale:_emails/mosaikasaProductEmailRetarded.html.twig', 'AppBundle:Emails:PreparedProducts/MosaikasaAsirPreparedProductsEmail.html.twig']], 'Menzzo' => ['email_sent_from' => 'contact@menzzo.fr', 'email_templates' => ['AppBundle:Emails:PreparedProducts/MenzzoAndAsirInternalStockPreparedProductsEmail.html.twig', 'AsirGroupBundle:Sale:brokenPackagesCustomerEmail.html.twig', 'AppBundle:Idf:_emails/bon_idf.html.twig', 'AppBundle:Sale:_emails/deliveryNotif.html.twig', 'AppBundle:Sale:_emails/deliveryNotifTomorrow.html.twig', 'AppBundle:Sale:_emails/productEnd.html.twig', 'AppBundle:Sale:_emails/productDelay.html.twig', 'AppBundle:Sale:_emails/productDelayRetardP.html.twig', "AppBundle:Emails:PreparedProducts/CarrierReceivedProductsEmail.html.twig", "AppBundle:UpStairs:_emails/bon_up_stairs.html.twig", 'AppBundle:Refund:refundMail.html.twig', 'AppBundle:Sale:_emails/productDelayRetarded.html.twig', "AppBundle:Emails:PreparedProducts/AsirPreparedProductsEmail.html.twig"]], 'Lengow' => ['email_sent_from' => 'alert@menzzo.fr', 'email_templates' => ['ErpBundle:Emails:Lengow/lengowOrderIssuesAlertEmail.html.twig']]]

Properties

Methods

__construct()

public __construct(mixed $container) : mixed
Parameters
$container : mixed

dispatchEmail()

public dispatchEmail(mixed $to, string $subject, string $template[, array<string|int, mixed> $templateVars = [] ][, mixed $source = 'Menzzo' ][, array<string|int, mixed> $bcc = ['logidav@googlegroups.com'] ][, array<string|int, mixed> $cc = [] ]) : bool
Parameters
$to : mixed
$subject : string
$template : string
$templateVars : array<string|int, mixed> = []
$source : mixed = 'Menzzo'
$bcc : array<string|int, mixed> = ['logidav@googlegroups.com']
$cc : array<string|int, mixed> = []
Return values
bool

send()

public send(string|array<string|int, mixed> $to, string $subject, string $template[, array<string|int, mixed> $templateVars = [] ][, string $from = 'contact@menzzo.fr' ][, array<string|int, mixed> $bcc = ['logidav@googlegroups.com'] ][, array<string|int, mixed> $cc = [] ]) : bool
Parameters
$to : string|array<string|int, mixed>
$subject : string
$template : string
$templateVars : array<string|int, mixed> = []
$from : string = 'contact@menzzo.fr'
$bcc : array<string|int, mixed> = ['logidav@googlegroups.com']
$cc : array<string|int, mixed> = []
Return values
bool

sendByfrontApp()

public sendByfrontApp(mixed $from, mixed $to, mixed $subject, mixed $content) : mixed
Parameters
$from : mixed
$to : mixed
$subject : mixed
$content : mixed

sendProductDelay()

public sendProductDelay(mixed $sale, mixed $items, mixed $params[, bool $useFrontApp = false ]) : bool
Parameters
$sale : mixed
$items : mixed
$params : mixed
$useFrontApp : bool = false
Return values
bool

sendProductDelayRetarded()

public sendProductDelayRetarded(mixed $sale, mixed $items, mixed $params[, bool $useFrontApp = false ]) : bool
Parameters
$sale : mixed
$items : mixed
$params : mixed
$useFrontApp : bool = false
Return values
bool

sendProductDelayRetardP()

public sendProductDelayRetardP(mixed $sale, mixed $items, mixed $params[, bool $useFrontApp = false ]) : bool
Parameters
$sale : mixed
$items : mixed
$params : mixed
$useFrontApp : bool = false
Return values
bool

sendProductEnd()

public sendProductEnd(mixed $sale, mixed $items, mixed $params[, bool $useFrontApp = false ]) : array<string|int, mixed>|bool
Parameters
$sale : mixed
$items : mixed
$params : mixed
$useFrontApp : bool = false
Return values
array<string|int, mixed>|bool

mapFrontAppUserEmail()

Maps specific user email addresses to alternative email addresses.

private mapFrontAppUserEmail(string $userEmail) : string

This method checks if the provided user email matches certain predefined email addresses and, if so, maps them to an alternative email address. If the email does not match any predefined addresses, it returns the original email.

Parameters
$userEmail : string

The email address of the user to be checked and potentially mapped.

Return values
string

The resulting email address after mapping. If the input email matches a predefined address, the corresponding alternative email is returned; otherwise, the original email is returned unchanged.


        
On this page

Search results