From 21e0de50b414a5d2bc09323a0eb897e3fb1cf601 Mon Sep 17 00:00:00 2001 From: Znote Date: Mon, 24 Oct 2016 01:21:55 +0200 Subject: [PATCH] Fix #245 --- config.php | 3 ++- engine/function/mail.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.php b/config.php index 2865735..eacfda1 100644 --- a/config.php +++ b/config.php @@ -532,7 +532,8 @@ 'host' => "mailserver.znote.eu", // Outgoing mail server host. 'securityType' => 'ssl', // ssl or tls 'port' => 465, // SMTP port number - likely to be 465(ssl) or 587(tls) - 'username' => 'noreply@znote.eu', // Likely the email address + 'email' => 'noreply@znote.eu', + 'username' => 'noreply@znote.eu', // Likely the same as email 'password' => 'emailpassword', // The password. 'debug' => false, // Enable debugging if you have problems and are looking for errors. 'fromName' => $config['site_title'], diff --git a/engine/function/mail.php b/engine/function/mail.php index 570387b..1aa93b6 100644 --- a/engine/function/mail.php +++ b/engine/function/mail.php @@ -57,7 +57,7 @@ class Mail { $mail->Password = $this->_config['password']; //Set who the message is to be sent from - $mail->setFrom($this->_config['username'], $this->_config['fromName']); + $mail->setFrom($this->_config['email'], $this->_config['fromName']); //Set who the message is to be sent to $mail->addAddress($to, $accname);