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 <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

 

 

 

 

 

 

Link to comment
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('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/

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.