In my messages I added a CC address

$message['headers']['CC'] = $ccaddr;

Both the From and CC user received the mail, but the CC user didn't show up as a CC. When I checked the code, both CC and BCC are being adding to the PHPMailer as a BCC.

I believe line 435 of smtp.module should become

          $mail->AddCC($ccaddr, $ccname);

Making that one line change fixed the problem for me.

Comments

Mike_Waters’s picture

Seconded.

This is more critical than you might think, because of this:
[class.phpmailer.php; line 376.]

   * Adds a "Bcc" address.
   * Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
  public function AddBCC($address, $name = '') {

Because of this one line, neither CC nor BCC are possible on a *nix box.

oadaeh’s picture

Version:6.x-1.0-beta3» 6.x-1.x-dev
Status:Active» Fixed

I have fixed this in the -dev version, here: http://drupal.org/cvs?commit=430132

@Mike_Waters: what that message is saying is that it doesn't work with the mail mailer on Win32, not *nix.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.