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')) {