Adding additional cc to PEAR's mail.php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • techjohnny@gmail.com

    #1

    Adding additional cc to PEAR's mail.php

    I have the following code, I can send e-mail to:, cc:, and bcc:, but
    what if I want to add another cc? I'm using PEAR's Mail.php.


    $hdrs['From']= $From;
    $hdrs['To']= $To;
    $hdrs['Subject']= $Subject;

    $recipients = $To.", ". $Cc.", ". $Bcc;


    Thanks,

    --TJ
  • Rik Wasmus

    #2
    Re: Adding additional cc to PEAR's mail.php

    On Tue, 04 Mar 2008 21:42:04 +0100, techjohnny@gmai l.com
    <techjohnny@gma il.comwrote:
    I have the following code, I can send e-mail to:, cc:, and bcc:, but
    what if I want to add another cc? I'm using PEAR's Mail.php.
    >
    >
    $hdrs['From']= $From;
    $hdrs['To']= $To;
    $hdrs['Subject']= $Subject;
    >
    $recipients = $To.", ". $Cc.", ". $Bcc;
    See the comment of arminfrey at
    <http://pear.php.net/manual/en/package.mail.ma il.send.php>. Haven't tested
    it (I normally have no use for PEAR MAIL, but it seems to be your answer....
    --
    Rik Wasmus

    Comment

    Working...