douhuijun3776 2019-06-10 14:23
浏览 116

如何通过PHP正确跟踪每个打开的邮件?

I send emails via AWS SES PHP API. I need to track every open of my sent mail, so I append 1x1 image to the body of my mail with URL pointing to gateway recording mail opens. But email opens are not tracked correctly, when emails are opened via different mail clients(e.g. Gmail, Mail.ru).

I send following headers in gateway recording mail opens: Content-Type: image/gif Content-Disposition: attachment; filename="blank.gif" Cache-Control: no-store

I also send "Cache-Control: no-store" header as the tracking image must not be cached to track all mail opens. In this case every mail open is tracked, but on first mail open 2 requests are sent from browser to load tracking image when opening email via Gmail client or mail.ru client. And when I send "Cache-Control: no-cache" header, track image loading request is sent only once on first email open

So how can I track email opens correctly?

The tracker image

<img src="tracker.php" width="1" height="1" border="0">
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!
    • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
    • ¥15 求daily translation(DT)偏差订正方法的代码
    • ¥15 js调用html页面需要隐藏某个按钮