Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

EZP-30723:Mailing does not work on Platform.sh #429

Merged
merged 1 commit into from
Jul 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/config/env/platformsh.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
$container->setParameter('cluster_database_name', 'cluster');
}

// If mailer_host has 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')) {
Expand Down