]> git.wh0rd.org - tt-rss.git/blobdiff - classes/ttrssmailer.php
update .gitignore
[tt-rss.git] / classes / ttrssmailer.php
index 1e8d077231f2f2e192fc95d637e1c6619d9e1269..cd10b7cb35a32890296f8082e689575b0b4d62d9 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
@@ -57,6 +60,4 @@ class ttrssMailer extends PHPMailer {
                $rc=$this->send();\r
                return $rc;\r
        }\r
-}\r
-\r
-?>\r
+}
\ No newline at end of file