summaryrefslogtreecommitdiff
path: root/classes/ttrssmailer.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-16 16:50:22 +0400
committerAndrew Dolgov <[email protected]>2013-04-16 16:50:22 +0400
commit4f032700dbfbbfa35798e05497c8a868eb73476f (patch)
treedd004de50d9f5597a97f8d1504585becae453973 /classes/ttrssmailer.php
parent90df27a4c12d3be57744d0bb4cde048ff3174591 (diff)
ttrssMailer: actually use OOP properly
Diffstat (limited to 'classes/ttrssmailer.php')
-rw-r--r--classes/ttrssmailer.php21
1 files changed, 8 insertions, 13 deletions
diff --git a/classes/ttrssmailer.php b/classes/ttrssmailer.php
index 54d180620..fd7f969aa 100644
--- a/classes/ttrssmailer.php
+++ b/classes/ttrssmailer.php
@@ -17,34 +17,29 @@ class ttrssMailer extends PHPMailer {
public $CharSet = "UTF-8";
public $PluginDir = "lib/phpmailer/";
public $ContentType = "text/html"; //default email type is HTML
- public $Host;
- public $Port;
- public $SMTPAuth=False;
- public $Username;
- public $Password;
function __construct() {
$this->SetLanguage("en", "lib/phpmailer/language/");
if (SMTP_SERVER) {
$pair = explode(":", SMTP_SERVER, 2);
- $Mailer = "smtp";
+ $this->Mailer = "smtp";
- $Host = $pair[0];
- $Port = $pair[1];
+ $this->Host = $pair[0];
+ $this->Port = $pair[1];
if (!$Port) $Port = 25;
} else {
- $Host = '';
- $Port = '';
+ $this->Host = '';
+ $this->Port = '';
}
//if SMTP_LOGIN is specified, set credentials and enable auth
if(SMTP_LOGIN){
- $SMTPAuth = true;
- $Username = SMTP_LOGIN;
- $Password = SMTP_PASSWORD;
+ $this->SMTPAuth = true;
+ $this->Username = SMTP_LOGIN;
+ $this->Password = SMTP_PASSWORD;
}
}
/* @brief a simple mail function to send email using the defaults