/var/www/vhosts/ihelp.ro/httpdocs/src/Controller/Component
Edit: /var/www/vhosts/ihelp.ro/httpdocs/src/Controller/Component/MailHelpComponent.php (3981B)
'126ae4',
'color__primary' => '3573e4',
# Images
'logo' => '',
# Texts
'text__preview' => 'Ihelp.ro'
];
# --------------------------------
# sendRegister
# --------------------------------
public function sendRegister($to = NULL, $link = NULL)
{
# We initialize e-mail
$mailer = new Mailer('default');
# Set view vars
$mailer->setViewVars([
'link' => $link,
'name' => $to['name'],
'config' => $this->config
]);
# We send the e-mail
$mailer
->setEmailFormat('html')
->setTo([$to['email'] => $to['name']])
->setSubject('ihelp.ro - Confirmare creare cont')
->setFrom(['noreply@ihelp.ro' => 'iHelp.ro'])
->viewBuilder()
->setTemplate('register')
->setLayout('default');
return $mailer->deliver();
}
# --------------------------------
# sendResetPassword
# --------------------------------
public function sendResetPassword($to = NULL, $link = NULL)
{
# We initialize e-mail
$mailer = new Mailer('default');
# Set view vars
$mailer->setViewVars([
'link' => $link,
'config' => $this->config
]);
# We send the e-mail
$mailer
->setEmailFormat('html')
->setTo([$to['email']])
->setSubject('ihelp.ro - Resetare Parola')
->setFrom(['noreply@ihelp.ro' => 'iHelp.ro'])
->viewBuilder()
->setTemplate('reset')
->setLayout('default');
return $mailer->deliver();
}
# --------------------------------
# sendChangePassword
# --------------------------------
public function sendChangePassword($to = NULL, $link = NULL)
{
# We initialize e-mail
$mailer = new Mailer('default');
# Set view vars
$mailer->setViewVars([
'link' => $link,
'config' => $this->config
]);
# We send the e-mail
$mailer
->setEmailFormat('html')
->setTo([$to['email']])
->setSubject('ihelp.ro - Schimbare parola')
->setFrom(['noreply@ihelp.ro' => 'iHelp.ro'])
->viewBuilder()
->setTemplate('change')
->setLayout('default');
return $mailer->deliver();
}
# --------------------------------
# sendOrder
# --------------------------------
public function sendOrder($to = NULL, $oLink = NULL, $order = NULL, $orderUuid = NULL)
{
# We initialize e-mail
$mailer = new Mailer('default');
# Set view vars
$mailer->setViewVars([
'link' => $oLink,
'orderUuid' => $orderUuid,
'order' => $order,
'config' => $this->config
]);
# We send the e-mail
$mailer
->setEmailFormat('html')
->setTo([$to['email']])
->setSubject(__('ihelp.ro - Comanda nr: {0} a fost emisă', $orderUuid))
->setFrom(['noreply@ihelp.ro' => 'iHelp.ro'])
->viewBuilder()
->setTemplate('order')
->setLayout('default');
return $mailer->deliver();
}
}