for($f=0; $f<count($person); $f++){ $messageUser = "<div style='display: block; width: 520px; background-color: #edeeef; padding: 10px;'> <p>Please confirm the payment voucher for<br> <br>Request by: ".$usercreated." <br>Voucher Name: ".$pv_name." <br><br>Your pin no: <strong>".$pin[$f]."</strong> <button>Confirm Account</button> </a> </div> "; $headers .= "Reply-To: Nothing <[email protected]>\r\n"; $headers .= "Return-Path: Nothing <[email protected]>\r\n"; $headers .= "From: Nothing <[email protected]>\r\n"; $headers .= "Bcc: Nothing <[email protected]>\r\n"; $headers .= "Organization: Nothing\r\n"; $headers .= "MIME-Version: 1.0\r\n"; // $headers .= "Content-type: text/plain; charset=iso-8859-1\r\n"; $headers .= "Content-type: text/html\r\n"; $headers .= "X-Priority: 3\r\n"; $headers .= "X-Mailer: PHP". phpversion() ."\r\n" ; $from = "[email protected]"; $retvaladmin2 = mail($person[$f],$subject,$messageUser,$headers, "-f" . $from); if($retvaladmin2){ $statusemail = 'success'; }echo $person[$f];echo "<br>";echo $statusemail;echo "<br>";}我想為不同的收件人發送 $pin[$f] 的驗證碼,每個收件人都有唯一的密碼。我讓它循環發送電子郵件。第一個收件人收到了電子郵件,但第二個收件人沒有。它顯示錯誤554 Transaction failed: Duplicate header 'From'
添加回答
舉報
0/150
提交
取消