]> git.wh0rd.org - tt-rss.git/blobdiff - classes/ttrssmailer.php
update reset user password to use ttrssMailer
[tt-rss.git] / classes / ttrssmailer.php
index 1b450c50ce93ff521de81dbcc5b25769a4063bf1..1eb9f1d3a2fa14e409db68d2b29664f030345b10 100644 (file)
@@ -22,7 +22,7 @@ class ttrssMailer extends PHPMailer {
                public $SMTPAuth=False;\r
                public $Username;\r
                public $Password;\r
-       \r
+\r
        function __construct() {\r
                $this->SetLanguage("en", "lib/phpmailer/language/");\r
                //if SMTP_HOST is specified, use SMTP to send mail directly\r
@@ -36,7 +36,7 @@ class ttrssMailer extends PHPMailer {
                }else{\r
                        $Port = "25";\r
                }\r
-               \r
+\r
                //if SMTP_LOGIN is specified, set credentials and enable auth\r
                if(SMTP_LOGIN){\r
                        $SMTPAuth = true;\r
@@ -55,9 +55,10 @@ class ttrssMailer extends PHPMailer {
                $this->addAddress($toAddress, $toName);\r
                $this->Subject = $subject;\r
                $this->Body = $body;\r
+               $this->IsHTML($altbody != '');\r
                $rc=$this->send();\r
                return $rc;\r
        }\r
 }\r
 \r
-?>
\ No newline at end of file
+?>\r