From 57932e183745bada9c6183056597cb5276f68d10 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 Nov 2018 14:45:14 +0300 Subject: remove PHPMailer and related directives from config.php-dist; add pluggable Mailer class --- classes/ttrssmailer.php | 63 ------------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 classes/ttrssmailer.php (limited to 'classes/ttrssmailer.php') diff --git a/classes/ttrssmailer.php b/classes/ttrssmailer.php deleted file mode 100644 index cd10b7cb3..000000000 --- a/classes/ttrssmailer.php +++ /dev/null @@ -1,63 +0,0 @@ -SetLanguage("en", "lib/phpmailer/language/"); - - if (SMTP_SERVER) { - $pair = explode(":", SMTP_SERVER, 2); - $this->Mailer = "smtp"; - - $this->Host = $pair[0]; - $this->Port = $pair[1]; - - if (!$this->Port) $this->Port = 25; - } else { - $this->Host = ''; - $this->Port = ''; - } - - - //if SMTP_LOGIN is specified, set credentials and enable auth - if(SMTP_LOGIN){ - $this->SMTPAuth = true; - $this->Username = SMTP_LOGIN; - $this->Password = SMTP_PASSWORD; - } - if(SMTP_SECURE) - $this->SMTPSecure = SMTP_SECURE; - } - /* @brief a simple mail function to send email using the defaults - * This will send an HTML email using the configured defaults - * @param $toAddress A string with the recipients email address - * @param $toName A string with the recipients name - * @param $subject A string with the emails subject - * @param $body A string containing the body of the email - */ - public function quickMail ($toAddress, $toName, $subject, $body, $altbody=""){ - $this->addAddress($toAddress, $toName); - $this->Subject = $subject; - $this->Body = $body; - $this->IsHTML($altbody != ''); - $rc=$this->send(); - return $rc; - } -} \ No newline at end of file -- cgit v1.2.3