diff --git a/application/config/email.php b/application/config/email.php index 166668d3..905cf010 100644 --- a/application/config/email.php +++ b/application/config/email.php @@ -7,6 +7,11 @@ $config['useragent'] = 'Easy!Appointments'; $config['protocol'] = 'mail'; // or 'smtp' $config['mailtype'] = 'html'; // or 'text' + +// $config['smtp_debug'] = '0'; // or '1' +// $config['smtp_auth'] = TRUE; //or FALSE for anonymous relay NOTE: DONT USE QUOTES ' ! + +// $config['smtp_host'] = ''; // $config['smtp_host'] = ''; // $config['smtp_user'] = ''; // $config['smtp_pass'] = ''; diff --git a/engine/Notifications/Email.php b/engine/Notifications/Email.php index 5a4a1379..9e607d38 100755 --- a/engine/Notifications/Email.php +++ b/engine/Notifications/Email.php @@ -315,8 +315,9 @@ class Email { if ($this->config['protocol'] === 'smtp') { $mailer->isSMTP(); + $mailer->SMTPDebug = $this->config['smtp_debug']; $mailer->Host = $this->config['smtp_host']; - $mailer->SMTPAuth = TRUE; + $mailer->SMTPAuth = $this->config['smtp_auth']; $mailer->Username = $this->config['smtp_user']; $mailer->Password = $this->config['smtp_pass']; $mailer->SMTPSecure = $this->config['smtp_crypto'];