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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy