Fix mail on sending mail

This commit is contained in:
Alexandre Simonet 2016-02-24 17:20:15 +01:00
parent 2c7333fd65
commit 191ccd1005

View File

@ -4,12 +4,16 @@ class Process
{ {
private $data; private $data;
private $mail_dir; private $mail_dir;
private $to; private $to = [];
public function __construct() public function __construct()
{ {
$this->mail_dir = dirname(__FILE__); $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) public function addProvider($post)