diff --git a/classes/ttrssmailer.php b/classes/ttrssmailer.php index 1f365c22e..54d180620 100644 --- a/classes/ttrssmailer.php +++ b/classes/ttrssmailer.php @@ -26,8 +26,8 @@ class ttrssMailer extends PHPMailer { function __construct() { $this->SetLanguage("en", "lib/phpmailer/language/"); - if (SMTP_HOST) { - $pair = explode(":", SMTP_HOST, 2); + if (SMTP_SERVER) { + $pair = explode(":", SMTP_SERVER, 2); $Mailer = "smtp"; $Host = $pair[0]; diff --git a/config.php-dist b/config.php-dist index 9dd46e295..48bd59870 100644 --- a/config.php-dist +++ b/config.php-dist @@ -170,7 +170,7 @@ define('SMTP_LOGIN', ''); define('SMTP_PASSWORD', ''); // These two options enable SMTP authentication when sending - // outgoing mail. Only used with SMTP_HOST + // outgoing mail. Only used with SMTP_SERVER. // *************************************** // *** Other settings (less important) ***