From dc04397618084647989ab75608a3c90d396de6b2 Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Mon, 29 Apr 2019 13:47:16 +0200 Subject: Set SMTP via environment vars. (#698) * Set SMTP via environment vars. Signed-off-by: Rodrigo Aguilera * Add SMTP instructions to the readme. Signed-off-by: Rodrigo Aguilera * Run update.sh for 16.0 release. Signed-off-by: Rodrigo Aguilera --- .config/smtp.config.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .config/smtp.config.php (limited to '.config') diff --git a/.config/smtp.config.php b/.config/smtp.config.php new file mode 100644 index 00000000..59f1eaa1 --- /dev/null +++ b/.config/smtp.config.php @@ -0,0 +1,15 @@ + 'smtp', + 'mail_smtphost' => getenv('SMTP_HOST'), + 'mail_smtpport' => getenv('SMTP_PORT') ?: (getenv('SMTP_SECURE') ? 465 : 25), + 'mail_smtpsecure' => getenv('SMTP_SECURE') ?: '', + 'mail_smtpauth' => getenv('SMTP_NAME') && getenv('SMTP_PASSWORD'), + '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'), + ); +} -- cgit v1.2.3