I've just started using this module and CC emails do not seem to be sent.

Relevant Block - smtp.module lines 480-494

      case 'cc':
        $ccrecipients = split(',', $value);
        foreach ($ccrecipients as $ccrecipient) {
          if (strpos($ccrecipient, '<') !== FALSE) {
            $ccparts = explode(' <', $ccrecipient);
            $ccname = $ccparts[0];
            $ccaddr = rtrim($ccparts[1], '>');
          }
          else {
            $ccname = '';
            $ccaddr = $ccrecipient;
          }
          $mail->AddBCC($ccaddr, $ccname);
        }
        break;

Basically the issue is that for CC this line is used
$mail->AddBCC($ccaddr, $ccname);
when the line
$mail->AddCC($ccaddr, $ccname);
should be used

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

oadaeh’s picture

Version: 6.x-1.0-beta5 » 7.x-1.x-dev
FileSize
686 bytes

This is in the 7.x-1.x branch. Attached is a patch to fix it there. I can commit it, if desired, but since I have not been maintaining this module for some years, I won't do it, unless otherwise instructed.

oadaeh’s picture

Title: CC Emails not sent » CC recipients sent as BCC
Status: Active » Needs review

Update the title and fix the status.

wundo’s picture

Status: Needs review » Fixed

Thanks and Welcome back to issue queue :)

Committed!

Status: Fixed » Closed (fixed)

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