From 191ccd100548361eb8626d51e9758e1c11ff1723 Mon Sep 17 00:00:00 2001 From: Alexandre Simonet Date: Wed, 24 Feb 2016 17:20:15 +0100 Subject: [PATCH] Fix mail on sending mail --- modules/contactform/Process.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/contactform/Process.php b/modules/contactform/Process.php index 23da34ba..3722475a 100644 --- a/modules/contactform/Process.php +++ b/modules/contactform/Process.php @@ -4,12 +4,16 @@ class Process { private $data; private $mail_dir; - private $to; + private $to = []; public function __construct() { $this->mail_dir = dirname(__FILE__); - $this->to = 'simonet@antadis.com'; + + $_to = Db::getInstance()->ExecuteS("SELECT email FROM "._DB_PREFIX_."contactform_email"); + foreach ($_to as $k => $email) { + $this->to[] = $email; + } } public function addProvider($post)