]> git.wh0rd.org - tt-rss.git/blobdiff - classes/ttrssmailer.php
Update messages.po
[tt-rss.git] / classes / ttrssmailer.php
index fd7f969aa701cc73caeccb65c42711aef7096da2..64e8a59a75784a554cae8d45a540e1f2a5eab347 100644 (file)
@@ -28,7 +28,7 @@ class ttrssMailer extends PHPMailer {
                        $this->Host = $pair[0];\r
                        $this->Port = $pair[1];\r
 \r
-                       if (!$Port) $Port = 25;\r
+                       if (!$this->Port) $this->Port = 25;\r
                } else {\r
                        $this->Host = '';\r
                        $this->Port = '';\r
@@ -41,6 +41,8 @@ class ttrssMailer extends PHPMailer {
                        $this->Username = SMTP_LOGIN;\r
                        $this->Password = SMTP_PASSWORD;\r
                        }\r
+               if(SMTP_SECURE)
+                       $this->SMTPSecure = SMTP_SECURE;        
        }\r
        /*      @brief a simple mail function to send email using the defaults\r
        *       This will send an HTML email using the configured defaults\r