I am using Rules 6.x-1.x-dev (2008-Dec-09) and Token 6.x-1.x-dev (2008-Dec-02).
Upon the saving of a specific content type I have setup a rule to send a tokenized e-mail.
When the node is successfully created the e-mail is sent. However, only the global tokens I have included in the body of the e-mail are replaced with the correct information.
Other tokens I have included in the body of the e-mail like [node-url] and others, simply come through in the email body as [node-url] or their respective token. As I indicated above, global tokens like [user-name] and [user-mail] are replaced just fine.
I have tried turning off the Token Actions module as indicated in the README.txt file. However, when I do that and then try to save the content type to which the rule applies, I receive the following error:
Fatal error: Call to undefined function token_actions_send_email_action() in /home/content/html/users/sites/all/modules/rules/rules/modules/rules.rules.inc on line 323
I've tried using both the "Content is going to be saved" and "After saving new content" events in the Rules API and it seems to make no difference.
This one has me puzzled, can anyone help me out here?
Comments
Comment #1
amitaibuWhat action are you using? From the error it sounds as you aren't using the Rules action to send an email.
Comment #2
geverest commentedI should have said the Rules UI, rather than the Rules API in the last sentence of my post.
I've setup no actions in the Actions UI. Rather, I've done everything in the Rules UI.
I hope that's the answer to the question you're asking.
Comment #3
amitaibuNo, the question is what is the action name you used to send emails?
Comment #4
geverest commentedI'm using the action "Send tokenized e-mail".
Comment #5
amitaibuDon't use this action, use the actions under System (e.g. 'Send mail to a user').
Comment #7
shermann commentedHi,
what is the correct soltuion then to send emails to a user with content from the content type?
Regards,
\sh
Comment #8
mitchell commentedUpdated component.