]> git.wh0rd.org - tt-rss.git/commitdiff
ttrssmailer: include phpmailer's smtp class
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 4 Jan 2017 07:33:24 +0000 (10:33 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 4 Jan 2017 07:33:24 +0000 (10:33 +0300)
classes/ttrssmailer.php

index 64e8a59a75784a554cae8d45a540e1f2a5eab347..4029bbbdb137b2abd2cb12beba9e6ef5c8ca5955 100644 (file)
@@ -7,6 +7,7 @@
 *\r
 */\r
 require_once 'lib/phpmailer/class.phpmailer.php';\r
+require_once 'lib/phpmailer/class.smtp.php';\r
 require_once "config.php";\r
 \r
 class ttrssMailer extends PHPMailer {\r
@@ -41,8 +42,8 @@ class ttrssMailer extends PHPMailer {
                        $this->Username = SMTP_LOGIN;\r
                        $this->Password = SMTP_PASSWORD;\r
                        }\r
-               if(SMTP_SECURE)
-                       $this->SMTPSecure = SMTP_SECURE;        
+               if(SMTP_SECURE)\r
+                       $this->SMTPSecure = SMTP_SECURE;        \r
        }\r
        /*      @brief a simple mail function to send email using the defaults\r
        *       This will send an HTML email using the configured defaults\r