This commit is contained in:
Znote 2016-10-24 01:21:55 +02:00
parent 01e4441b6b
commit 21e0de50b4
2 changed files with 3 additions and 2 deletions

View File

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

View File

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