X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=classes%2Fttrssmailer.php;h=cd10b7cb35a32890296f8082e689575b0b4d62d9;hb=643d1919cc27a80aff424970b337e83be72720d1;hp=64e8a59a75784a554cae8d45a540e1f2a5eab347;hpb=7aab5617b689701cd9b6210132ed4e9dd55d3941;p=tt-rss.git diff --git a/classes/ttrssmailer.php b/classes/ttrssmailer.php index 64e8a59a..cd10b7cb 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 @@ -59,6 +60,4 @@ class ttrssMailer extends PHPMailer { $rc=$this->send(); return $rc; } -} - -?> +} \ No newline at end of file