Replies: 2 comments
-
Any idea to log which transport is used in the logs ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello, Mailer’s |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using Symfony Mailer with two configured transports:
After reading the Symfony Mailer documentation, I could not find a way to log which transport was actually used for sending each email when using custom X-Transport header.
I have enabled a dedicated Monolog channel for mailer logs:
But this only logs basic email info, not the actual transport name or DSN that was used to send the message.
How can I reliably log the transport used for each email (including the transport alias or DSN) using Monolog or an event subscriber?
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions