Skip to content
This repository was archived by the owner on Feb 6, 2022. It is now read-only.

Use sendmail_path as default value #302

Merged
merged 1 commit into from
Sep 27, 2020
Merged

Conversation

fritzmg
Copy link
Contributor

@fritzmg fritzmg commented Sep 4, 2020

Quite some time ago, Swiftmailer dropped support for the PHP mail function for security reasons and thus forcing you to use either sendmail or smtp. However, when using sendmail, The Swiftmailer Bundle only uses a hard coded command by default, which might not work on all hosting environments out of the box. The PHP mail function on the other hand uses the configured sendmail_path of the PHP configuration, which most likely will work in the respective hosting environment.

This PR simply uses the configured sendmail_path as the default value for the command parameter of the bundle configuration. Therefore emails should work again out of the box, just like it was before when Swiftmailer still supported PHP mail.

Kind of like the poor-man's version of symfony/symfony#36131 ;)

@fabpot
Copy link
Member

fabpot commented Sep 27, 2020

Thank you @fritzmg.

@fabpot fabpot merged commit daee02f into symfony:master Sep 27, 2020
@fritzmg fritzmg deleted the use-sendmail_path branch September 27, 2020 07:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants