Skip to content

Mailer uses return-path as sending address when communicating with SMTP server #60527

@Bilge

Description

@Bilge

Symfony version(s) affected

6.4.21

Description

The remote SMTP server will be told the message comes from the return-path address, not the from address (unless return-path is not set).

How to reproduce

framework:
  mailer:
    headers:
      from: Foo <foo@bar.com>
      return-path: bounces@bar.com

Possible Solution

Use from header instead.

Additional Context

No response

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