diff --git a/21.0/fpm-alpine/config/smtp.config.php b/21.0/fpm-alpine/config/smtp.config.php index 4bdf2c9a..59f1eaa1 100644 --- a/21.0/fpm-alpine/config/smtp.config.php +++ b/21.0/fpm-alpine/config/smtp.config.php @@ -1,5 +1,5 @@ 'smtp', 'mail_smtphost' => getenv('SMTP_HOST'), @@ -9,11 +9,7 @@ if (getenv('SMTP_HOST')) { 'mail_smtpauthtype' => getenv('SMTP_AUTHTYPE') ?: 'LOGIN', 'mail_smtpname' => getenv('SMTP_NAME') ?: '', 'mail_smtppassword' => getenv('SMTP_PASSWORD') ?: '', + 'mail_from_address' => getenv('MAIL_FROM_ADDRESS'), + 'mail_domain' => getenv('MAIL_DOMAIN'), ); - if (getenv('MAIL_FROM_ADDRESS')) { - $CONFIG['mail_from_address'] = getenv('MAIL_FROM_ADDRESS'); - } - if (getenv('MAIL_DOMAIN')) { - $CONFIG['mail_domain'] = getenv('MAIL_DOMAIN'); - } }