Hi Guys,
I need help on this.
I have 5 email field and 5 name fields
<input type='text' name='name1'>
<input type='text' name='email1'>...
when user submits the form then I'm using phpmailer to send to every user a confirmation mail
Dear $_POST['name1'] thank you ....
This is the code I'm using
$mail = new PHPMailer();
$mail->IsMail();
$mail->IsHTML(true);
$mail->Subject = "Subscribe";
$mail->From = 'info@rakuci.com';
$mail->FromName = 'Rakuci';
$mail->AddReplyTo('info@rakuci.com','Rakuci');
for($i=1;$i<=5;$i++){
$sBCC .= $mail->AddBCC($_POST['email'.$i], $_POST['name'.$i]);
$msg = '<p>Dear'.$_POST['naam'.$i]. ',</p>Thank you ....</p>';
}
$mail->Body = $msg;
$mail->Send();
The problem is I cant get the write name to the email adres
Can somebody help me please