Jump to content

CC field in PHPMailer on Centos


kabucek

Recommended Posts

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

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/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.