Transports are limited to the set defined in drupal by the tagged services "mailer.transport_factory"

Created on 18 April 2025, 6 days ago

Problem/Motivation

In the 1.x branch of the module to add a new transport is as easy as "composer require symfony/mailgun-mailer" but in 2.x the transports are limited by the services tagged as "mailer.transport_factory"

Steps to reproduce

Run
composer require symfony/mailgun-mailer
Try to set a dsn with the mailgun scheme and send a test email.
An error appears:
The "mailgun+api" scheme is not supported

Proposed resolution

Allow Symfony mailer to register all the transports that are installed and then apply modifications. Remove the tagged services mechanism

Remaining tasks

Discuss the possible solution

User interface changes

API changes

Remove the "mailer.transport_factory" tag for services

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇪🇸Spain rodrigoaguilera Barcelona

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024