Problem/Motivation

Emails are going out CC and not BCC.

This just started happening.

Code in play:

Drupal core 8.9.8
Mail System 8.x-4.3
Admin Content Notification 8.x-3.6
SendGrid Integration 8.x-1.6

Also SendGrig service.

I'm not 100% that admin_content_notification is the cause of the issue. Not sure how to troubleshoot.

I would appreciate any help in figuring out where the problem lies and how to fix it.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

dougouverson created an issue. See original summary.

dougouverson’s picture

Issue summary: View changes
dougouverson’s picture

Issue summary: View changes
dougouverson’s picture

Issue summary: View changes
dougouverson’s picture

Priority: Major » Normal
dougouverson’s picture

I test the system with SendGrid and Postmark, using SMTP and emails are still going out CC and not BCC. I'm not aware of any other services in play.

manish.upadhyay’s picture

Hi @dougouverson,

Right now as per implementation mails only using cc option while trying to send, it has to be set BCC using code which can be done easily using "hook_admin_content_notification_params_alter" which is provided by the module, just change the params as required and pass bcc headers to the mail.

manish.upadhyay’s picture

manish.upadhyay’s picture

Status: Active » Fixed
manish.upadhyay’s picture

Status: Fixed » Closed (works as designed)
dougouverson’s picture

"just change the params as required and pass bcc headers to the mail"

For the benefit of others, could you please share lines of code and params that need to be altered?

Thank you.

P.S. I am going to submit a future request: administrators would have a check box option to select CC or BCC.