Support authentication-less SMTP

As per #1014 and @KlausFriese's fix
This commit is contained in:
3wc 2020-11-15 19:32:37 +02:00 committed by GitHub
parent b59f62c139
commit d038862057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -602,6 +602,11 @@ namespace {
$phpmailer->Host = psm_get_conf('email_smtp_host');
$phpmailer->Port = (int)psm_get_conf('email_smtp_port');
$phpmailer->SMTPSecure = psm_get_conf('email_smtp_security');
if( $phpmailer->SMTPSecure == '' ) {
$phpmailer->SMTPAutoTLS = false;
$phpmailer->SMTPSecure = false;
}
$smtp_user = psm_get_conf('email_smtp_username');
$smtp_pass = psm_password_decrypt(