9 months ago

Log Mailgun response to database - open/link tracking and mail logging

Posted 9 months ago by lambooni

I would like to log my mail sends to the database for general logging as well as link/open tracking as provided by mailgun.

I am using the Illuminate\Mail\Events\MessageSent event and can get the swift mailer object from here and general email components. I can't however work out how to get the mailgun response and mailgun message id which is required for the link and open tracking.

Does anyone know how I may get this logged along with the message?

Please sign in or create an account to participate in this conversation.