From 9899a1e8e020acea4aed3df4688fba39da6da7d2 Mon Sep 17 00:00:00 2001 From: Marco Gandi Date: Thu, 19 Oct 2023 10:37:22 +0200 Subject: [PATCH] Add custom mailer command for Drupal Symfony Mailer --- web/sites/default/settings.platformsh.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/sites/default/settings.platformsh.php b/web/sites/default/settings.platformsh.php index e80914a..699c6e5 100644 --- a/web/sites/default/settings.platformsh.php +++ b/web/sites/default/settings.platformsh.php @@ -163,3 +163,12 @@ break; } } + +// Drupal Symfony Mailer (contrib) +// Platform.sh provides msmtp to intercept sendmail emails and forward them to +// Sendgrid. Since the msmtp doesn't work with the default -bs sendmail option, +// you should use the custom command ini_get('sendmail_path'). +// @see: https://www.drupal.org/docs/contributed-modules/drupal-symfony-mailer/getting-started#s-platformsh +$settings['mailer_sendmail_commands'] = [ + ini_get('sendmail_path'), +];