]> git.wh0rd.org - tt-rss.git/blobdiff - classes/ttrssmailer.php
ttrssmailer: include phpmailer's smtp class
[tt-rss.git] / classes / ttrssmailer.php
index 1e8d077231f2f2e192fc95d637e1c6619d9e1269..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,6 +42,8 @@ class ttrssMailer extends PHPMailer {
                        $this->Username = SMTP_LOGIN;\r
                        $this->Password = SMTP_PASSWORD;\r
                        }\r
+               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