Workbench Email is sending two emails on node creation.

Created on 24 August 2023, 10 months ago
Updated 7 September 2023, 10 months ago

Problem/Motivation

I have a content type called POSTER, which when you create the node, saves it as DRAFT

I have two email templates that are fired when this node is saved for the first time.

and

When that node is saved, these two email templates get sent TWICE to the correct recipients.

One recipient SHOULD get two emails.

The other should get just one. For three total.

6 are processed in Drupal

(our 3rd party mail handler is Postmark app, who shows the emails in their delivery log)

Steps to reproduce

Create a node that uses this workflow, and hit save.

Proposed resolution

How do I debug what is sending the emails?

Is it my workflow?
Does Drupal think the act of saving it should trigger a draft state... twice? (my logs only show one action/event in relation to the node that was created )

I'm trying to figure out how to not send duplicate emails.

Thank you.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States alphex Atlanta, GA USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @alphex
  • Status changed to Closed: works as designed 10 months ago
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Hi @alphex

    You will need to separate out the draft to draft and published to draft transitions. With your setup you will also get an email with every save of a draft.

    Perhaps making a new transition for draft to draft 'Keep as draft'

    LR

Production build 0.69.0 2024