Closed
Description
Symfony version(s) affected: 5.0.8
Description
I am upgrading my application to Symfony 5 and moving from SwiftMailer to Symfony Mailer.
I would like to send emails using sendmail:
MAILER_DSN=sendmail+smtp://default
This is working well on Linux but not on Windows.
I have properly configured my php.ini by setting the sendmail_path
option but it looks like Symfony does not take it in account.
When sending an email, this error is returned:
Process could not be started: Le chemin d'accès spécifié est introuvable.
in C:\dev\vendor\symfony\mailer\Transport\Smtp\Stream\ProcessStream.php (line 44)
While trying to debug, I found that $this->command
contains /usr/sbin/sendmail -bs
which looks to be the default linux path for sendmail.