From 43de0001f01765ac6e67d55c52f23f55dac3c784 Mon Sep 17 00:00:00 2001 From: Vidar Langseid Date: Thu, 4 Jul 2019 13:10:09 +0200 Subject: [PATCH] [Platform.sh]Setting mailer_host --- app/config/env/platformsh.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/config/env/platformsh.php b/app/config/env/platformsh.php index 5c5bf69979..133ead67cb 100644 --- a/app/config/env/platformsh.php +++ b/app/config/env/platformsh.php @@ -36,6 +36,11 @@ $container->setParameter('cluster_database_name', 'cluster'); } +// If mailer_host as default value, then set it to platform.sh' default instead +if ($container->getParameter('mailer_host') === '127.0.0.1') { + $container->setParameter('mailer_host', getenv('PLATFORM_SMTP_HOST')); +} + // PLATFORMSH_DFS_NFS_PATH is different compared to DFS_NFS_PATH in the sense that it is relative to ezplatform dir // DFS_NFS_PATH is an absolute path if ($dfsNfsPath = getenv('PLATFORMSH_DFS_NFS_PATH')) {