Is default Bcc is broken ?

bhupendra.doniwal
bhupendra.doniwal Posts: 53 🧑🏻‍🚀 - Cadet

Hi team,

I am using the default Spryker mailer and trying to set the BCC email, but it is not being set. Can anyone confirm if the default code should work fine, or is there something specific I should check? I have debugged, and my BCC email is being set, but it does not appear in the headers.

Thanks!

Tagged:

Best Answer

  • Fred Jung
    Fred Jung Spryker Customer Posts: 24 ✨ - Novice
    Answer ✓

    Why are you expecting the bcc to be in the header?

Answers

  • victor.vanherpt
    victor.vanherpt Spryker Solution Partner Posts: 62 🪐 - Explorer
    edited June 27

    $mailTransfer->addRecipientBcc((new MailRecipientTransfer())->setEmail('my@email.com'));              
    

    Doesn't adding it to the mailTransfer work? (we're using Spryker's Symfony mailer)
    
  • Fred Jung
    Fred Jung Spryker Customer Posts: 24 ✨ - Novice
    Answer ✓

    Why are you expecting the bcc to be in the header?

  • bhupendra.doniwal
    bhupendra.doniwal Posts: 53 🧑🏻‍🚀 - Cadet

    @Fred Jung Yes, I was unaware that BCC is not present in the header, and I was testing it locally.

    now it is working file
    thank you guys.

  • Fred Jung
    Fred Jung Spryker Customer Posts: 24 ✨ - Novice

    Good to hear!