From 08a902794721d3ebf624ccb975d1f2a86f95f3bb Mon Sep 17 00:00:00 2001 From: Brian Lycett Date: Wed, 30 Dec 2020 11:09:50 +0000 Subject: [PATCH] Issue #57 - fix for SMTP not working for servers that don't require authentication. --- www/includes/config.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/includes/config.inc.php b/www/includes/config.inc.php index 7ee735d..8a7a8af 100644 --- a/www/includes/config.inc.php +++ b/www/includes/config.inc.php @@ -55,10 +55,10 @@ ### $SMTP['host'] = getenv('SMTP_HOSTNAME'); - $SMTP['user'] = getenv('SMTP_USERNAME'); - $SMTP['pass'] = getenv('SMTP_PASSWORD'); + $SMTP['user'] = (getenv('SMTP_USERNAME') ? getenv('SMTP_USERNAME') : NULL); + $SMTP['pass'] = (getenv('SMTP_PASSWORD') ? getenv('SMTP_PASSWORD') : NULL); $SMTP['port'] = (getenv('SMTP_HOST_PORT') ? getenv('SMTP_HOST_PORT') : 25); - $SMTP['tls'] = ((strcasecmp(getenv('SMTP_USE_TLS'),'TRUE') == 0) ? TRUE : FALSE); + $SMTP['tls'] = ((strcasecmp(getenv('SMTP_USE_TLS'),'TRUE') == 0) ? TRUE : FALSE); $SMTP['debug_level'] = getenv('SMTP_LOG_LEVEL'); if (!is_numeric($SMTP['debug_level']) or $SMTP['debug_level'] >4 or $SMTP['debug_level'] <0) { $SMTP['debug_level'] = 0; }