Merge branch 'master' of https://github.com/cbka/easyappointments into develop

This commit is contained in:
Alex Tselegidis 2021-04-07 10:11:30 +02:00
commit 60254558a3
2 changed files with 7 additions and 1 deletions

View File

@ -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'] = '';

View File

@ -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'];