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

amitaibu’s picture

Component: Miscellaneous » Provided module integration
Status: Active » Postponed (maintainer needs more info)

What action are you using? From the error it sounds as you aren't using the Rules action to send an email.

geverest’s picture

I 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.

amitaibu’s picture

No, the question is what is the action name you used to send emails?

geverest’s picture

I'm using the action "Send tokenized e-mail".

amitaibu’s picture

Title: Only global tokens are replaced » using 'Send tokenized e-mail' action leads to an error
Status: Postponed (maintainer needs more info) » Fixed

Don't use this action, use the actions under System (e.g. 'Send mail to a user').

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

shermann’s picture

Hi,

what is the correct soltuion then to send emails to a user with content from the content type?

Regards,

\sh

mitchell’s picture

Component: Provided module integration » Provided Module Integrations

Updated component.