Merge branch 'alexandre-contactform' into develop

This commit is contained in:
Thibault UBUNTU 2016-03-02 09:59:59 +01:00
commit 4960b181e4
5 changed files with 3 additions and 14 deletions

View File

@ -10,6 +10,7 @@ class Process
public function __construct()
{
$this->mail_dir = dirname(__FILE__);
var_dump($this->mail_dir);
$_to = Db::getInstance()->ExecuteS('SELECT `email`, `type` FROM `'._DB_PREFIX_.'contactform_email`');
foreach ($_to as $k => $email) {
@ -56,13 +57,7 @@ class Process
'provider',
'Contact fournisseur',
$this->data,
$this->to_provider,
NULL,
NULL,
NULL,
NULL,
NULL,
$this->mail_dir
$this->to_provider
);
if (!$sended) {
$errors[] = Tools::displayError('Une erreur s\'est produite. Votre message n\'a pas été envoyé');
@ -110,13 +105,7 @@ class Process
'press',
'Contact presse',
$this->data,
$this->to_press,
NULL,
NULL,
NULL,
NULL,
NULL,
$this->mail_dir
$this->to_press
);
if (!$sended) {
$errors[] = Tools::displayError('Une erreur s\'est produite. Votre message n\'a pas été envoyé');