我的代码看起来像这样
$GetUserQuery = $this->DB->GetAll("SELECT DISTINCT email, user_id FROM reviews WHERE product_id = ?i AND NOT email = ?s AND status=?i",$product_id, $email,1);
$ProductUrl = MAIN_URL . Lang::GetLang() . '/product/detail/'.$product_id.'#link';
foreach ($GetUserQuery as $key => $value) {
$time = date('Y/m/d h:i:s');
if (Functions::IsEmail($value['email'])) {
Email::Send($value['email'], EMAIL, 'subject', 'message');
}
}
想法是它在撰写评论时开始工作,并向所有在同一产品上撰写评论的人发送电子邮件到所有电子邮件,但想法是它仅发送4次,所以我无法接收电子邮件。
如果您有任何理由要写点什么