From 68fb3c955a93cfd06690dfb9c81de2fc2ffcf9f6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 23 Mar 2013 09:20:16 +0400 Subject: update reset user password to use ttrssMailer --- classes/ttrssmailer.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'classes/ttrssmailer.php') diff --git a/classes/ttrssmailer.php b/classes/ttrssmailer.php index 1b450c50c..1eb9f1d3a 100644 --- a/classes/ttrssmailer.php +++ b/classes/ttrssmailer.php @@ -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; } } -?> \ No newline at end of file +?> -- cgit v1.2.3-54-g00ecf