You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
monolog:
channels: ['mailer']
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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