Closed (outdated)
Project:
Rules
Version:
6.x-1.4
Component:
Rules Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2012 at 12:37 UTC
Updated:
23 Apr 2018 at 06:26 UTC
Jump to comment: Most recent
Hello everyone,
I'm calling node_save() from a custom module.
I also created a rule which is triggered once a new content is added. It should unpublish the node, redirect the users and send an email.
Only redirection works properly. The node is not unpublished and the user does not receive an email.
The itself node is saved properly and there are no error messages in the log.
Any ideas where the problem might be?
Thanks!
Comments
Comment #1
bisonbleu commentedI have a similar problem.
A simple rule that sends an email when a node is created (no custom module):
- IF Created content is [my-content-type]
- DO Send a mail to an arbitrary mail address
I've tried using the following tokens:
- [node:field_email-formated]:
-- generates an error
-- Log entry: Error sending e-mail (from Webmaster to firstname.lastname@mydomain.com).
- [node:field_email-raw]:
-- generates a Successful message
-- Log entry: Successfully sent email to firstname.lastname@mydomain.com
-- But NO email is ever received!
I tested sending an email with the user Contact tab. It works as expected.
Can anyone help or make a suggestion?
Comment #2
bisonbleu commentedChanging the title to reflect what appears to be a more generic issue (unrelated to custom module).
Comment #3
bisonbleu commentedUpdate.
Change Rules settings from After saving new content to Content is going to be saved and it will work.
It does not make complete sense to me.
But hey, it works! :-)
Comment #4
tr commented