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
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Fix-sending-CC-recipients-as-BCC-980836-1.patch | 686 bytes | oadaeh |
Comments
Comment #1
oadaeh commentedThis 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.
Comment #2
oadaeh commentedUpdate the title and fix the status.
Comment #3
wundo commentedThanks and Welcome back to issue queue :)
Committed!