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 <[email protected]>" ); $PHPMailerLink->AddCC($ccEmailAdr, $ccEmailName); $PHPMailerLink->headers .= "Cc: [email protected]"; $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 Link to comment https://forums.phpfreaks.com/topic/158290-cc-field-in-phpmailer-on-centos/ 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('[email protected]', 'First Person'); // More than one CC, just keep adding them! $mailer->AddCC('[email protected]', 'Second Person'); $mailer->AddCC('[email protected]', 'Third Person'); - - - - Our working example may be of assistance. http://www.hostmysite.com/support/linux/programming/phpmailer/ Link to comment https://forums.phpfreaks.com/topic/158290-cc-field-in-phpmailer-on-centos/#findComment-834879 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. Link to comment https://forums.phpfreaks.com/topic/158290-cc-field-in-phpmailer-on-centos/#findComment-834900 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.