Laravel - Log Mailgun对数据库的响应,用于打开/链接跟踪和邮件日志记录

我想将我的邮件发送到数据库进行常规日志记录以及链接/打开跟踪 mailgun。</ p>

我正在使用Illuminate \ Mail \ Events \ MessageSent事件,可以从这里获取swift邮件程序对象和一般电子邮件组件。 然而,我无法弄清楚如何获取链接和开放跟踪所需的mailgun响应和mailgun消息ID。</ p>

有谁知道我如何记录这一点与 消息?</ p>
</ div>

展开原文

原文

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?

doumei1203
doumei1203 您可以通过设置MailgunWebhooks来获取Mailgun响应和Mailgun消息ID。
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐