8000 [Mailer] sendmail transport not working on Windows · Issue #36842 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Mailer] sendmail transport not working on Windows #36842
Closed
@Seb33300

Description

@Seb33300

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0