\r
function __construct() {\r
$this->SetLanguage("en", "lib/phpmailer/language/");\r
- //if SMTP_HOST is specified, use SMTP to send mail directly\r
+\r
if (SMTP_HOST) {\r
- $Host = SMTP_HOST;\r
+ $pair = explode(":", SMTP_HOST, 2);\r
$Mailer = "smtp";\r
+\r
+ $Host = $pair[0];\r
+ $Port = $pair[1];\r
+\r
+ if (!$Port) $Port = 25;\r
+ } else {\r
+ $Host = '';\r
+ $Port = '';\r
}\r
- //if SMTP_PORT is specified, assign it. Otherwise default to port 25\r
- if(SMTP_PORT){\r
- $Port = SMTP_PORT;\r
- }else{\r
- $Port = "25";\r
- }\r
+\r
\r
//if SMTP_LOGIN is specified, set credentials and enable auth\r
if(SMTP_LOGIN){\r
define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
// Subject line for email digests
- define('SMTP_HOST', '');
- // SMTP Host to send outgoing mail. Blank - use system MTA.
+ define('SMTP_SERVER', '');
+ // Hostname:port combination to send outgoing mail (i.e. localhost:25).
+ // Blank - use system MTA.
- define('SMTP_PORT','');
- // SMTP port to sent outgoing mail. Default is 25.
-
define('SMTP_LOGIN', '');
define('SMTP_PASSWORD', '');
// These two options enable SMTP authentication when sending
-<?php # This file has been generated at: Sat Apr 13 17:41:19 MSK 2013
+<?php # This file has been generated at: Tue Apr 16 16:38:38 MSK 2013
define('GENERATED_CONFIG_CHECK', 26);
-$requred_defines = array( 'DB_TYPE', 'DB_HOST', 'DB_USER', 'DB_NAME', 'DB_PASS', 'MYSQL_CHARSET', 'SELF_URL_PATH', 'FEED_CRYPT_KEY', 'SINGLE_USER_MODE', 'SIMPLE_UPDATE_MODE', 'PHP_EXECUTABLE', 'LOCK_DIRECTORY', 'CACHE_DIR', 'ICONS_DIR', 'ICONS_URL', 'AUTH_AUTO_CREATE', 'AUTH_AUTO_LOGIN', 'FORCE_ARTICLE_PURGE', 'PUBSUBHUBBUB_HUB', 'PUBSUBHUBBUB_ENABLED', 'SPHINX_ENABLED', 'SPHINX_INDEX', 'ENABLE_REGISTRATION', 'REG_NOTIFY_ADDRESS', 'REG_MAX_USERS', 'SESSION_COOKIE_LIFETIME', 'SESSION_CHECK_ADDRESS', 'SMTP_FROM_NAME', 'SMTP_FROM_ADDRESS', 'DIGEST_SUBJECT', 'SMTP_HOST', 'SMTP_PORT', 'SMTP_LOGIN', 'SMTP_PASSWORD', 'CHECK_FOR_NEW_VERSION', 'ENABLE_GZIP_OUTPUT', 'PLUGINS', 'CONFIG_VERSION'); ?>
+$requred_defines = array( 'DB_TYPE', 'DB_HOST', 'DB_USER', 'DB_NAME', 'DB_PASS', 'MYSQL_CHARSET', 'SELF_URL_PATH', 'FEED_CRYPT_KEY', 'SINGLE_USER_MODE', 'SIMPLE_UPDATE_MODE', 'PHP_EXECUTABLE', 'LOCK_DIRECTORY', 'CACHE_DIR', 'ICONS_DIR', 'ICONS_URL', 'AUTH_AUTO_CREATE', 'AUTH_AUTO_LOGIN', 'FORCE_ARTICLE_PURGE', 'PUBSUBHUBBUB_HUB', 'PUBSUBHUBBUB_ENABLED', 'SPHINX_ENABLED', 'SPHINX_INDEX', 'ENABLE_REGISTRATION', 'REG_NOTIFY_ADDRESS', 'REG_MAX_USERS', 'SESSION_COOKIE_LIFETIME', 'SESSION_CHECK_ADDRESS', 'SMTP_FROM_NAME', 'SMTP_FROM_ADDRESS', 'DIGEST_SUBJECT', 'SMTP_SERVER', 'SMTP_LOGIN', 'SMTP_PASSWORD', 'CHECK_FOR_NEW_VERSION', 'ENABLE_GZIP_OUTPUT', 'PLUGINS', 'CONFIG_VERSION'); ?>