From b68ff8df64b17acdd0ce2b762f6064a80a70414e Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 8 Feb 2021 17:08:42 +0000 Subject: Hard-code SMTP configuration Signed-off-by: Lukas Reschke --- .devcontainer/codespace.config.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to '.devcontainer') diff --git a/.devcontainer/codespace.config.php b/.devcontainer/codespace.config.php index 9c1730b3c9c..6908aa8475f 100644 --- a/.devcontainer/codespace.config.php +++ b/.devcontainer/codespace.config.php @@ -2,8 +2,15 @@ $cloudEnvironmentId = getenv('CLOUDENV_ENVIRONMENT_ID'); -if($cloudEnvironmentId !== false) { - $CONFIG = array ( - 'overwritehost' => $cloudEnvironmentId . '-80.apps.codespaces.githubusercontent.com', - ); +$CONFIG = [ + 'mail_from_address' => 'no-reply', + 'mail_smtpmode' => 'smtp', + 'mail_sendmailmode' => 'smtp', + 'mail_domain' => 'example.com', + 'mail_smtphost' => 'localhost', + 'mail_smtpport' => '1025' +]; + +if($cloudEnvironmentId !== true) { + $CONFIG['overwritehost'] = $cloudEnvironmentId . '-80.apps.codespaces.githubusercontent.com'; } -- cgit v1.2.3