Issue #57 - fix for SMTP not working for servers that don't require authentication.

This commit is contained in:
Brian Lycett 2020-12-30 11:09:50 +00:00
parent 8449c39991
commit 08a9027947

View File

@ -55,8 +55,8 @@
### ###
$SMTP['host'] = getenv('SMTP_HOSTNAME'); $SMTP['host'] = getenv('SMTP_HOSTNAME');
$SMTP['user'] = getenv('SMTP_USERNAME'); $SMTP['user'] = (getenv('SMTP_USERNAME') ? getenv('SMTP_USERNAME') : NULL);
$SMTP['pass'] = getenv('SMTP_PASSWORD'); $SMTP['pass'] = (getenv('SMTP_PASSWORD') ? getenv('SMTP_PASSWORD') : NULL);
$SMTP['port'] = (getenv('SMTP_HOST_PORT') ? getenv('SMTP_HOST_PORT') : 25); $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);