Closed
Description
Symfony version(s) affected
5.4.16
Description
When signing an email with a DKIM, the BCC address is removed. If the message is not signed, the BCC is still present and sent to the recipient.
How to reproduce
$message = new Email();
$message->html('text/html');
$message->bcc($this->getAdminEmail());
$message->to(new Address($user->getEmail(), $user->getDisplayName()))
->subject($subject)
->html($body)
;
$signer = new DkimSigner('file://' . $dkimPath, $dkimDomain, 'mySelector');
$signedMessage = $signer->sign($message);
$this->mailer->send($signedMessage);
Possible Solution
No response
Additional Context
No response