[英]How can i detect if the mail which i sent has been opened, and in which browser (user agent), and OS using PHP?
在我的公司中,我们通常用于发送邮件,我们希望静态地打开邮件,并希望使用PHP从哪个浏览器打开邮件(更多信息)。
You can do this by adding image in your HTML email 您可以通过在HTML电子邮件中添加图片来做到这一点
<img src="https://example.com/images/YOUR_LOGO__uc_12245.png" />
But this url https://example.com/images/YOUR_LOGO__uc_12245.png must be handled by your scripts (PHP) where you can check headers of request and at the end just return requested image as normal. 但是,此URL https://example.com/images/YOUR_LOGO__uc_12245.png必须由您的脚本(PHP)处理,您可以在其中检查请求的标头,最后只照常返回请求的图像。 Some services do that way.
一些服务就是这样做的。 In uc_12245 you can store id of your user, for example.
例如,在uc_12245中,您可以存储用户的ID。
But remember, this is will not work every time, for example with Gmail, because Gmail show your image via proxy ( it needs to be tested, maybe it still will work ). 但请记住,这并非每次都适用,例如,对于Gmail而言,并非如此,因为Gmail通过代理显示您的图片( 需要进行测试,也许仍然可以使用 )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.