Question about phpmailer

Discussion in 'PHP' started by hno2005, May 9, 2010.

  1. #1
    HI,
    I'm using phpmailer to send my mail and I want to send some emails to manyone .Is it possible to add more than one email address in phpmailer to send emails to?If so,How can I do so?

    Thanks
     
    hno2005, May 9, 2010 IP
  2. easic

    easic Active Member

    Messages:
    37
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    #2
    $mail->AddCC('address','Name');

    or

    $mail->AddBCC('address','Name');

    you can do that multiple times..
     
    easic, May 9, 2010 IP
  3. hno2005

    hno2005 Member

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #3
    You mean I write it like this:
    $mail->AddBCC('address1','Name1');
    $mail->AddBCC('address2','Name2');
    $mail->AddBCC('address3','Name3');

    or I should write $mail->send(); after each line?

    Thanks
     
    hno2005, May 9, 2010 IP
  4. easic

    easic Active Member

    Messages:
    37
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    #4
    like your example:

    $mail->AddBCC('address1','Name1');
    $mail->AddBCC('address2','Name2');
    $mail->AddBCC('address3','Name3');


    if ($mail is your object, of course)
     
    easic, May 9, 2010 IP