views:

107

answers:

2

I am looking for the syntax to add node fields to the body of an email. Examples I looked at indicate the the format is:

[content_type:content_type_title]

However my email arrives with just the string :

[content_type:content_type_title]

Even better would be a PHP snippet that loads the node and dumps filed title and filed value into the body of the message.

A: 

Use node_load($nid) or db_query to get the node you want, use that in the email function you are creating.

Kevin
I am using Rules module "wizard". I am not sure if I can add PHP directly to body of message without writing a hook-module.
bert
A: 

Rules supports the Token module, which should allow you to do something like that.

Nicholai