Option to put email addresses in To: instead of in Bcc:

Created on 29 October 2018, about 6 years ago
Updated 31 July 2024, 5 months ago

A very simple patch is following to allow to keep emails in To: instead of the default behavior to put them in Bcc: and use the global site for To:

We are using this patch in our of our projects, however, my colleague https://www.drupal.org/u/mup0 found that the *Bcc* headers are not unset.

This means that if we have two or more notifications and in one of them we are setting data in the *Bcc* the next notification will use it.

Feature request
Status

Needs work

Version

3.3

Component

Code

Created by

🇫🇷France GuillaumeDuveau Toulouse

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States ryankavalsky

    I'm grateful to have found this thread. My notification emails stopped going out altogether ("Unable to send email. Contact the site administrator if the problem persists"), apparently because there was nobody in the "To" field. This approach fixed that issue! The current patches weren't applying to 8.x-3.5, so I re-rolled the patch for compatibility. Please wrap this patch into the next release of the module. Thank you!

  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.1 & MySQL 8
    last update about 1 year ago
    10 pass, 2 fail
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 8
    last update about 1 year ago
    10 pass, 2 fail
  • J'ai fait un patch custom pour mettre la function qui crée le hook après l'ajout des destinataires

    J'utilise le hook en question pour vérifier si c'est un administrateur qui ajoute / modifie le contenu pour mettre la variable de destination à vide.

Production build 0.71.5 2024