I made a rule that sends emails to an arbitrary address. However, the emails being sent show unevaluated php. The email sent reads:
Subject: Authorization Reqeust <? $author ?>'s Teacher Absence Form
Content: Please authorize this form:<? $node?>
What could be the problem? Why isn't the rule sending the php already evaluated?
Comments
Comment #1
mitchell commentedThis definitely seems like a bug to me.
@ballerjones: In the meantime, you could use token.
Comment #2
ballerjones commentedI fixed the problem. Just had to make <? into <?php
However, $node and $author aren't being parsed. Just blank spaces in the email. Any ideas?
Comment #3
fago$node is an object, try e.g. $node->title
Comment #4
ballerjones commentedok, so i figured a lot of things out, but for some reason this won't parse:
print $node->content['group_nd']['field_tname']['#value'];however, this did:
print $node->nid;Why?
I even tested trying to print a field value that isn't inside a group:
print $node->content['field_test']['#value'];but no dice
Comment #5
fagoI suppose those values are not available when the php code is executed, try invoking node_build_content() on the node before.