How To Pass Mailgun ID create in MailgunTransport to an Event Listener, in Laravel?
问题 In my Laravel application, I have an Event Listener that triggers when someone is added to a course, then emails that user "You've been added to course". I am using Mailgun to send these emails, and in this Listener, I call \Mail which builds a blade file and sends the email to the users, which all works fine. My issue is I want to store that Mailgun ID. Which in Laravel v6 gets added in Illuminate\Mail\Transport\MailgunTransport@send and I can access that ID by calling $message->getId()