kabucek Posted May 15, 2009 Share Posted May 15, 2009 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: 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/modules/shop/lib/phpmailer/phpdoc/phpmailer.html#AddCC(var,%20var) is that true? Is there a way to make it work? Thanks Quote Link to comment Share on other sites More sharing options...
ldougherty Posted May 15, 2009 Share Posted May 15, 2009 I have phpMailer working with CC on my centOS server without issue. http://www.askapache.com/php/phpfreaks-eric-rosebrocks-phpmailer-tutorial.html Adding Carbon Copy CC Recipients To carbon copy (CC) recipients you can add them to the E-Mail going out by using the following methods. Just like the Adding Multiple Recipients example, you can add multiple CC recipients as well. $mailer->AddCC('recipient1@domain.com', 'First Person'); // More than one CC, just keep adding them! $mailer->AddCC('recipient2@domain.com', 'Second Person'); $mailer->AddCC('recipient3@domain.com', 'Third Person'); - - - - Our working example may be of assistance. http://www.hostmysite.com/support/linux/programming/phpmailer/ Quote Link to comment Share on other sites More sharing options...
kabucek Posted May 15, 2009 Author Share Posted May 15, 2009 I've tried that and nothing. what you use for smtp? maybe I have older version where this bug was not fixed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.