Hard-code SMTP configuration

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2021-02-08 17:08:42 +00:00 committed by GitHub
parent 7f983cc549
commit b68ff8df64
1 changed files with 11 additions and 4 deletions

View File

@ -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';
}