CC field in PHPMailer on Centos

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kabucek
Forum Commoner
Posts: 50
Joined: Thu Sep 04, 2008 2:20 pm

CC field in PHPMailer on Centos

Post by kabucek »

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:

Code: Select all

 
    $PHPMailerLink->AddAddress($destEmailAdr, $destEmailName);
    $PHPMailerLink->AddCC("WebTester <me@me.com>" );
     $PHPMailerLink->AddCC($ccEmailAdr, $ccEmailName);
        $PHPMailerLink->headers .= "Cc: me@me.com";
    $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/inc/ ... ar,%20var)

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

Thanks
Last edited by Benjamin on Fri May 15, 2009 12:13 pm, edited 1 time in total.
Reason: Added [code=php] tags.
Post Reply