简体   繁体   English

如何检测使用PHP打开的邮件是否已打开,在哪个浏览器(用户代理)和OS中打开?

[英]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.

相关问题 如何查看php中已按下哪个按钮? - How can I see which button has been pressed in php? 如何检测php rename()是否已成功执行? - How can i detect if php rename() has been successfully executed? 我如何用php显示哪些图像已经在输入类型文件中上传? - How I can show which image has been uploaded inside input type file with php? 如何跟踪收件人打开了哪些(或多少)封电子邮件? - How can I track which (or how many) emails have been opened by the recipient? 如何找出应用程序打开了哪些文件? - How can I find out which files have been opened by the application? 如何在view2.gnp中的view1.php中定义的view2.php中使用PHP变量? - How can I use a PHP variable in view2.php which has been defined in view1.php in CodeIgniter? 如何检测用户的浏览器和操作系统,并使用它来动态修改PHP页面中的MySQL数据库查询 - How can I detect browser and OS of user and use this to dynamically modify my MySQL database query from a PHP page 使用PHP如何显示已在SQL中保存为图像路径的图像 - Using PHP how can i display images which have been saved in SQL as a image path 当我的用户代理不包含类似的东西时,我如何使用 php 检测用户使用 ipad - How can I detect with php that the user uses an ipad when my user agent doesnt conatin something like that 我们可以通过在 php 中使用 mailto 函数来隐藏按钮并检查邮件是否已发送来获得回电吗? - can we get a call back by using mailto function in php to hide the button and check mail has been sent?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM