From: Andrew Dolgov Date: Wed, 4 Jan 2017 07:33:24 +0000 (+0300) Subject: ttrssmailer: include phpmailer's smtp class X-Git-Tag: 17.1~26 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=eee818c46a25131c65f349104cf5877e356c2a27;p=tt-rss.git ttrssmailer: include phpmailer's smtp class --- diff --git a/classes/ttrssmailer.php b/classes/ttrssmailer.php index 64e8a59a..4029bbbd 100644 --- a/classes/ttrssmailer.php +++ b/classes/ttrssmailer.php @@ -7,6 +7,7 @@ * */ require_once 'lib/phpmailer/class.phpmailer.php'; +require_once 'lib/phpmailer/class.smtp.php'; require_once "config.php"; class ttrssMailer extends PHPMailer { @@ -41,8 +42,8 @@ class ttrssMailer extends PHPMailer { $this->Username = SMTP_LOGIN; $this->Password = SMTP_PASSWORD; } - if(SMTP_SECURE) - $this->SMTPSecure = SMTP_SECURE; + 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