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);