Skip to content

Make it easier to use multiple mailers #33874

@javiereguiluz

Description

@javiereguiluz

Description
In #33409 it's explained that you need to do this to select the transport to use to send the email message:

// use the first "main" transport
$mailer->send($email);

// or use the "important" one
$email->getHeaders()->addTextHeader('X-Transport', 'important');
$mailer->send($email);

That doesn't look very user friendly 😐 Could we make it easier to use? Maybe like using multiple SwiftMailer mailers in Symfony apps? (Maybe that's already the case and we just need to document it?) Or maybe add another argument to send() method or add another method to select the transport?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    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