8000 [Notifier][Mailer] Allow configuring envelope per transport · Issue #58388 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Notifier][Mailer] Allow configuring envelope per transport #58388
Open
@faizanakram99

Description

@faizanakram99

Description

Notifier with email transport by default uses the global sender and recipient set in mailer.{yml,php}.

The globally set sender overrides any sender set in code (https://symfony.com/doc/current/reference/configuration/framework.html#sender) and the envelope is set on mailer node making it default for all transports, this makes notifier's email channel unusable with multiple transports.

Example

TLDR; Sending notifications via email should be as simple as possible

This should just work.

$this->notifier->send(
    new Notification('some important message', ['email/operations', 'email/security'])
);

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