CC field in PHPMailer on Centos

Discussion in 'Programming' started by kabucek, May 15, 2009.

  1. #1
    hi @LL,

    we are using PHPMailer for sending response emails to our form,
    and we want to add CC field to it but for some reason I can't get it to work.
    This is CentOS Server.
    Here is the part of the script:

    $PHPMailerLink->AddAddress($destEmailAdr, $destEmailName);
    $PHPMailerLink->AddCC("WebTester <me@me.com>" );
    $PHPMailerLink->AddCC($ccEmailAdr, $ccEmailName);
    $PHPMailerLink->headers .= "Cc: ";
    $PHPMailerLink->From=$fromEmailAdr;
    $PHPMailerLink->FromName=$fromName;
    $PHPMailerLink->Subject = $subjectString;
    $PHPMailerLink->Body = $messageString;



    All CC commands doesn't do anything.
    On this page they say that CC is not supported in Linux,

    http://www.bahamasgateway.com/shop/...hpmailer/phpdoc/phpmailer.html#AddCC(var, var)

    is that true?
    Is there a way to make it work?

    Thanks
     
    kabucek, May 15, 2009 IP