allowing sending of mails

This commit is contained in:
Marion Muszynski 2016-11-02 12:29:20 +01:00
parent f90f499f00
commit 1fa6860786

View File

@ -126,13 +126,13 @@ if (Tools::isSubmit('submitMessage')) {
}
if (!empty($contact->email))
{
/*if (Mail::Send((int)($cookie->id_lang), 'contact_form', Mail::l('Your message has been correctly sent'), array('{message}' => stripslashes($message)), $from)) {
if (Mail::Send((int)($cookie->id_lang), 'contact_form', Mail::l('Your message has been correctly sent'), array('{message}' => stripslashes($message)), $from)) {
$smarty->assign('confirmation', 1);
} else {
$errors[] = Tools::displayError('An error occurred while sending message.');
}
else
$errors[] = Tools::displayError('An error occurred while sending message.');*/
// local
$smarty->assign('confirmation', 1);
// $smarty->assign('confirmation', 1);
}
if ($contact->customer_service)
@ -206,9 +206,9 @@ if (Tools::isSubmit('submitMessage')) {
$cm->user_agent = $_SERVER['HTTP_USER_AGENT'];
if ($cm->add())
{
/*if (empty($contact->email)) {
if (empty($contact->email)) {
Mail::Send((int)($cookie->id_lang), 'contact_form', Mail::l('Your message has been correctly sent'), array('{message}' => stripslashes($message)), $from);
}*/
}
$smarty->assign('confirmation', 1);
}
else