1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-30 16:57:10 +00:00

update reset user password to use ttrssMailer

This commit is contained in:
Andrew Dolgov
2013-03-23 09:20:16 +04:00
parent 6ef8ec84cb
commit 68fb3c955a
2 changed files with 9 additions and 27 deletions

View File

@@ -22,7 +22,7 @@ class ttrssMailer extends PHPMailer {
public $SMTPAuth=False;
public $Username;
public $Password;
function __construct() {
$this->SetLanguage("en", "lib/phpmailer/language/");
//if SMTP_HOST is specified, use SMTP to send mail directly
@@ -36,7 +36,7 @@ class ttrssMailer extends PHPMailer {
}else{
$Port = "25";
}
//if SMTP_LOGIN is specified, set credentials and enable auth
if(SMTP_LOGIN){
$SMTPAuth = true;
@@ -55,9 +55,10 @@ class ttrssMailer extends PHPMailer {
$this->addAddress($toAddress, $toName);
$this->Subject = $subject;
$this->Body = $body;
$this->IsHTML($altbody != '');
$rc=$this->send();
return $rc;
}
}
?>
?>