Closed (fixed)
Project:
Mailer Plus (DSM+)
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2025 at 20:39 UTC
Updated:
14 Jun 2025 at 07:44 UTC
Jump to comment: Most recent
Comments
Comment #3
rodrigoaguileraComment #4
adamps commentedThanks well spotted.
Calling
Transport::fromDsncreates a new Transport object based on the `getDefaultFactories`.What we actually want to use are the Drupal configured transport services, which exist in
$MultiTransport->transportFactory. This will pick up all services taggedmailer.transport_factoryincluding the SendmailCommandValidationTransportFactory decoration. Maybe we could addMultiTransport::validateDsn()to validate using this collection?Comment #5
adamps commentedComment #6
adamps commented@rodrigoaguilera Please feel free to take a look and let me know if it works for you. Otherwise I'll check in before I make the next release.
Comment #7
adamps commentedComment #8
rodrigoaguileraI checked out fa24d4c6407eb0bacaf08099be868b938717e6e6 and succesfully created a transport with the interface.
The code look good. I don't really use the architecture with the tagged services but I guess is important for flexibility opening the door for things like decorating.
Comment #10
adamps commentedGreat thanks