(编辑:jimmy 日期: 2026/1/1 浏览:2)
很多人在使用phpmailer发送邮件之后,都想知道对方是否阅读了邮件?通常来说,这个我们是无法知道的,那么有没有办法呢?
对于这个问题有一个简单的解决方法,我们知道,邮件内容可以以html 的形式发送,我们可以在内容中插入图片,那么关键就在这个图片里面了。
假设我们的邮件内容是这样的:
文件content.php代码如下:
<table width="555" height="50" border="0" align="center" cellpadding="0" cellspacing="0" background="<"> <tr> <td>这是测试内容</td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table>
这个$bg要怎么写呢?如果邮件是发送多个人呢?这里又怎么区分呢?
假设链接是这样的:http://www.xxx.com/image.php"htmlcode">
<"email"];
if($id)
{
include_once("/conn.php");
mysql_query("update mail_list set has_read='yes' where email='$email'");
}
header("Content/type:image/gif");
$im=imagecreatefromgif("bg.gif");
imagegif($im);
imagedestroy($im);
"htmlcode">
<"content.php");
$content=ob_get_contents();
ob_end_clean();
"htmlcode">
<"userA"=>"aaaa@sina.com","userB""=>"bbb@163.com","userC"=>"ccc@qq.com");
*/
foreach ($contact as $unm=>$email)
{
$bg_file="http://{$_SERVER['SERVER_NAME']}/image.php";
$str=str_replace('background=""',"background=\"$bg_file\"",$content);
$mail->MsgHTML($str);
$mail->AddAddress($email,$unm);
$mail->Send();
}
"color: #0000ff">http://www.domain.com/image.php"color: #ff0000">修改办法是:打开class.phpmailer.php,找到310行,将private $to=Array()改成public $to=Array().
然后在发送邮件的代码中加入:
$mail->to=Array();
$mail->AddAddress($email,$unm);
写到这里,就不用再做过多说明了。
高通和谷歌日前宣布,推出首次面向搭载骁龙的Windows PC的优化版Chrome浏览器。
在对骁龙X Elite参考设计的初步测试中,全新的Chrome浏览器在Speedometer 2.1基准测试中实现了显著的性能提升。
预计在2024年年中之前,搭载骁龙X Elite计算平台的PC将面世。该浏览器的提前问世,有助于骁龙PC问世就获得满血表现。
谷歌高级副总裁Hiroshi Lockheimer表示,此次与高通的合作将有助于确保Chrome用户在当前ARM兼容的PC上获得最佳的浏览体验。