Skip to content

Conversation

@joelpittet
Copy link
Member

The mode checking and exception has been there since this class started in Swiftmailer:
swiftmailer/swiftmailer@de5f2f9#diff-ab3f44d17819352e5340cebcc66a104a2c60ae6a389cbc012d6d13625cd2b870R87

It's caused trouble in combination with environment specific scripts that capture or parse mail with overridden ini_get('sendmail_path') like mailhog in my case or we use a custom script that eats mail in our staging environments.

Here's more context and details around the problem:
https://www.drupal.org/project/symfony_mailer/issues/3277333#comment-14619079
https://www.drupal.org/project/swiftmailer/issues/3174215

I'm creating this PR against 6.1 but we are using "symfony/mailer": "^5.3.0", in Drupal, not sure if this will get in 5.x, but maybe this will help future us 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants