In the Rules module, is it possible to write php code in mail body? There is no input format beneath body text area.

1 Answer 1


If you are willing to use PHP, I suggest you create your own rule, using hook_action_info().

You have a good example in the Examples module.

  • Just for reference, the example is in the Actions submodule of the Examples module. Jan 29, 2014 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.