allowing sending of mails
This commit is contained in:
parent
f90f499f00
commit
1fa6860786
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user