1

I am looking for the syntax to add node fields to the body of an email. Examples I looked at the documentation, and 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.

apaderno
  • 28,547
  • 16
  • 75
  • 90
bert
  • 287
  • 6
  • 14

2 Answers2

0

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

Kevin
  • 13,153
  • 11
  • 60
  • 87
  • 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 Apr 21 '10 at 20:56
0

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

Nicholai
  • 818
  • 7
  • 17