After updating the Rules 8.x-3.0-alpha5 we started receiving reports that emails were no longer being received.

An example of this is a rule we have set in place to email a content editor when a new user is created. Alpha-5 no longer runs the action of 'Send Email'. Other actions were being triggered, but the email action wasn't.

We rolled back to alpha-4 and the email was triggered again so we can pinpoint it to the new release.

Has anyone else experienced this issue?

Comments

Jtotheeannie created an issue. See original summary.

tr’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Nothing has really changed with that action since alpha4, just some coding standards. It wouldn't hurt to edit the Rule you're having a problem with and simply save it unchanged. And of course clear all the caches.

Are you sure it's the action, and not one of the conditions or events you're using? The automated tests and my own test site shows this action is working properly.

You should create a simple test rule to see if you can reproduce the problem - use a simple event like new article created, and just the send mail action, nothing else. If you can reproduce the problem with a simple rule, export that rule and post it here.

You can also test the rest of your problem rule using a system message action instead of send mail. That will tell you whether your events and conditions are still working as expected, without involving the send mail action.

jtotheeannie’s picture

No conditions are being used. 1 event 1 action. We recreated the rule which also failed to work. We've tested the 'Send email' action with different events which also failed, including updating an existing user and saving a new content item.

We've also tried on another site with the same outcome, the email was not being sent out. Rolling back to alpha-4 fixed it on both sites.

ash2303’s picture

I have been using Rules 8.x-3.0-alpha5 with gmail as SMTP. I am able to receive all kinds of emails using rules.
Can you attach log/rule info for more details.

dercheffe’s picture

I got it working with this here and alpha 5:


uuid: 20826f5e-4036-49d2-a710-35aa4660e470
langcode: de
status: true
dependencies: {  }
id: email_bei_neuem_thema
label: 'Email bei neuem Thema'
events:
  -
    event_name: 'rules_entity_insert:node'
description: ''
tags: {  }
config_version: '3'
expression:
  id: rules_rule
  uuid: 703e6546-b955-4fa9-bc01-ec286abfffff
  conditions:
    id: rules_and
    uuid: 989a0290-f899-4736-8c52-6d152f2aeda8
    conditions:
      -
        id: rules_condition
        uuid: dbbec55b-fffa-4b90-a7e8-e13a50c68be6
        context_values:
          types:
            - thema
        context_mapping:
          node: node
        context_processors:
          types:
            rules_tokens: {  }
        provides_mapping: {  }
        condition_id: rules_node_is_of_type
        negate: false
  actions:
    id: rules_action_set
    uuid: aed6b834-826c-4454-951f-28d8daa01927
    actions:
      -
        id: rules_action
        uuid: 8551b858-812b-4cad-bdbe-f9a67f235f08
        context_values:
          to:
            - me@example.com
          subject: 'Projektmanagement: Ein neues Thema wurde erstellt'
          message: 'Ein neues Thema im Bereich "Projektmanagement" wurde erstellt'
          reply: ''
          language: ''
        context_mapping: {  }
        context_processors:
          to:
            rules_tokens: {  }
          subject:
            rules_tokens: {  }
          message:
            rules_tokens: {  }
          reply:
            rules_tokens: {  }
          language:
            rules_tokens: {  }
        provides_mapping: {  }
        action_id: rules_send_email

perhaps it helps :)

First I stumbled over "content type" as condition. After using the condition "node is of type" it worked.

tr’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)