1

I have a code

<?php
if(!empty($_POST['invite'])) {
  foreach($_POST['invite'] as $check) {
   }
$import_emails =  implode($_POST['invite'], ',');
$imp_eml = explode(',', $import_emails);

$mail->AddAddress($imp_eml [0]);
$mail->AddBCC($imp_eml);
......
......
}     
?>

I want to send multiple emails in AddBCC but i am confuse how to send and which type loop i should use for send multiple emails.

have any idea?

1
  • 1
    put this: $mail->AddAddress($email); inside a foreach( $imp_eml as $email) { /* code here */ } loop Commented Oct 7, 2013 at 20:05

2 Answers 2

1

You usually can send to multiple recipients by separating them with a ;

edit: woops, forget about it :D

Sign up to request clarification or add additional context in comments.

Comments

1

AddAddress should be in loop:

foreach ($imp_eml as $addr){
    $mail->AddAddress($addr);
    $mail->AddBCC($addr);
}

5 Comments

M sorry ....@Adam i want to accept but my reputation is only 6 so its not possible...
@ShubhamVema - I've just give You 10 :) I Hope that You can accept answer now :)
Thanks ....@Adam, can you help again me? The link is stackoverflow.com/questions/19241668/…
@ShubhamVema - use FDL comment :)
Hello ...@Adam, Please help me again, click on this link and give a precious solution... stackoverflow.com/questions/19241668/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.