2014 年 12 月,我的电子邮件冲击波应用程序(由 CI 框架构建)在主机上顺利运行。这是完整的 img 标签(使用 Gmail 打开):
<img src="https://ci3.googleusercontent.com/proxy/b1Ud84K8P6C6Yso9MhNwumluc4XG16f2bC1IK0SaJRjkHrNoY6zmdAAwXvC1TTdN1OEj_-GXvE94xgNfGNxy_JTQiZ-LQfa47AwaiTUw4dHYR-F-04rhakp3Ha7BqjmitIaGUQ=s0-d-e1-ft#http://www.domain.tld/email/received/ac26b0194082cb1ceb93c480a48388f1" width="1" height="1" class="CToWUd">
但是,在 2015 年 1 月 1 日之后,我的跟踪图像被 EFA-Projects.org 阻止。所以我不能再通过我的跟踪像素跟踪打开的电子邮件了。这是完整的 img 标签:
<img src="http://dl.efa-project.org/static/1x1spacer.gif" width="1" height="1" alt="Web Bug from http://www.domain.tld/email/received/78d705691857b9f9f4c20ebe20e40d7d">
这是接收到的函数:
public function received($code = NULL){
if(!empty($code)){
$blasted_email = $this->BlastedEmail->first(array('been_read_code' => $code));
if ($blasted_email) {
$blasted_email->been_read = "Yes";
$blasted_email->save();
}
}
header_remove();
//header("Content-Length: 0");
header('Content-Type: image/gif');
header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
header('Pragma: no-cache'); // HTTP 1.0.
header('Expires: 0'); // Proxies.
$img = file_get_contents('http://imagizer.imageshack.us/a/img537/2260/shWlm6.gif');
echo $img;
}
此处的 imageshack 用于返回图像。
我已经完成了 6 个多小时的故障排除,以找出为什么我的 src 属性更改为http://dl.efa-project.org/static/1x1spacer.gif
但在我问这个问题之前我找不到任何东西。
任何答案将不胜感激。谢谢你。