0
カウントがゼロでない場合に2人のユーザーに電子メールを送信したいとします。私が作っているとき $ semail = $ row_seller ['seller_email']; $ semail = $ row_seller ['seller_email']。 "、[email protected]" ;;そうではない、私は両方にそれを送りたい。どうすればいいの?phpメーラーで複数のユーザーに電子メールを送信する方法
$query1 = "select * from `seller` where seller_pincode = $pincode";
$run_query1 = mysqli_query($con,$query1);
$count_seller = mysqli_num_rows($run_query1);
if($count_seller == 0){
$semail = "[email protected]";
$sname = $saddress = $spincode =$scity= $sstate =$sphone = $sgst = $span = "Not Available";
}
else{
while($row_seller=mysqli_fetch_array($run_query1)){
$semail = $row_seller['seller_email'].",[email protected]";
}}
$email = $semail;
$subject = "Order Details";
$message = 'You got a new Order!!! ";
require_once('mailer/class.phpmailer.php');
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPDebug = 0;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "tls";
$mail->Subject = $subject;
$mail->MsgHTML($message);
$mail->Send();