Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Symfony Mailer remove BCC when using DkimSigner #48566

Closed
@sdespont

Description

@sdespont

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions