Hi, I am using PHP mailer to send out 2 different emails.
The problem I am having is only the first email is ever sent out.
Below is my code. The first email $to but i add two mail id mail not sending.
Please help....this is urgent!
[php]$mail = new PHPMailer();
$mail->From = "palani@xxxx.co m";
$mail->FromName = " manager";
$mail->Host = "xxxxx.com" ;
$mail->Mailer = "smtp";
$body .= " manager";
$text_body .= "Sincerely, \n";
$text_body .= "manager";
$mail->Body = $body;
$mail->AltBody = $text_body;
$to='palan@xxxx x.com'; //here add to two mail id
$mail->AddAddress($to ,'palani'); if(!$mail->Send())
echo "There has been a mail error sending to ";
// Clear all addresses and attachments for next loop
$mail->ClearAddresses ();
?>[/php]
reply me
The problem I am having is only the first email is ever sent out.
Below is my code. The first email $to but i add two mail id mail not sending.
Please help....this is urgent!
[php]$mail = new PHPMailer();
$mail->From = "palani@xxxx.co m";
$mail->FromName = " manager";
$mail->Host = "xxxxx.com" ;
$mail->Mailer = "smtp";
$body .= " manager";
$text_body .= "Sincerely, \n";
$text_body .= "manager";
$mail->Body = $body;
$mail->AltBody = $text_body;
$to='palan@xxxx x.com'; //here add to two mail id
$mail->AddAddress($to ,'palani'); if(!$mail->Send())
echo "There has been a mail error sending to ";
// Clear all addresses and attachments for next loop
$mail->ClearAddresses ();
?>[/php]
reply me
Comment