Hello,
I have not found any answer to the following issue.
I am using Rules to send emails "after updating an existing content".
For any field of the "Send mail" action, if I am using the "Data Selection" mode, the token that I choose comes out fine in the email sent ([node:title] is replaced by the title of the node).
However, I need to add some extra text to my Message body, so I switch to "Direct input" mode. And here:
- no token shows under replacement patterns section.
- when I put any token such as [node:title] or [node:field-date:value], it returns a blank space in the email instead of the value it stands for.
Another issue which seems related, the PHP evaluation option does not show either when either on "Direct input" or "Data Selection" mode.
Config:
Rules, Rules UI (All 7.x-2.9)
Workflow Rules 7.x-2.5
Entity tokens, Token 7.x-1.5
Token tweaks 7.x-1.x-dev
HTML Mail 7.x-2.65
Mail System 7.x-2.34
Comments
Comment #1
thememex commentedTry the patch posted on this this issue:
https://www.drupal.org/node/1533398#comment-6471118
I had a similar problem trying to display [entity:field-date-repeat:0:duration], and just kept getting a blank value. I was able to display things like [entity:nid] or [site:name]. And if I told the rule to check for [entity:title], I could display that value as well. But I was never able to pull up a value from an entity token array until applying the patch linked above.
Comment #2
Chewits commentedPatch in
https://www.drupal.org/node/1533398#comment-6471118
didn't help me.
I use [node:body:0:value] (multivalue body field) and try to send it in email notification on action "after saving new content".
This token works fine in "data selection" mode.
Please help..