function send_check_mail($email, $subject,$uid,$buffer)
{
echo "hello";
$command = "/var/qmail/bin/qmail-inject ".$email; //qmail程序地址,$email是要发送的地址
$handle = popen($command, "w"); //打开管道
if (!$handle) {
return false;
}$from = "[email protected]"; //发件人
fwrite($handle, "from: ".$from."n"); //往管道写数据
fwrite($handle, "return-path: ".$from."n");
fwrite($handle, "to: ".$uid."n");
fwrite($handle, "subject: ".$subject."n");
fwrite($handle, "mime-version: 1.0n");
fwrite($handle, "content-type: text/html; charset="gb2312"nn");
fwrite($handle, $buffer."n");
pclose($handle); //关闭管道return true;
}
$subject = "测试邮件";$uid = $_post['uid']; //from信息
".$u_email
$content= "." 您好!
谢谢,www.111com.net!
"; //内容信息$u_email = "[email protected]"; //发送到的邮箱
if (send_check_mail($u_email, $subject, $uid, $content)) {echo "恭喜!发送投票邮件到您的邮箱!
请检查您的邮箱:".$u_email."
". $close;
} else {echo "很不幸,发送投票邮件到您的邮箱失败,请重试或者联系开发人员。
". $close;}
Ubuntu怎么换壁纸? Ubuntu中设置自己照片为桌面的技巧
Ubuntu系统日期和时间怎么设置? Ubuntu修改时间和日期的技巧
LangGraph 初识:Agent 为什么要采用 Graph 工作流?
LangGraph 人工介入机制:用 Interrupt 暂停 Agent 并等待确认
Ubuntu怎么进行延迟截图? Ubuntu截图技巧
DeepSeek Harness 系列(05):Session 如何保存并延续对话记忆