Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am:
- Using Rules to send a HTML email
- The Rule runs when the node is saved and it changes from unpublished to published.
- The node has a custom long_text field called "field_body_text".
In the email Rule, I put the token [field_body_text]
. However, the actual email renders it out as Property field_body_text
. How can I get the actual contents of the field to appear when I use this token?
In the Display settings for the node, I have made sure under Token*, the field is set to Plain.
*This is located at: mysite.com/admin/structure/types/manage/[my-content-type]/display/token
Comments
Comment #1
frank005 CreditAttribution: frank005 commentedI'm having this same issue. We have a field called field_request_body that is a Long Text field type with Text area (multiple rows) as the input type. When we have the input set to plain text, the send HTML e-mail displays the field fine but when we set it to filtered HTML, it displays "Property field_request_body".
Comment #2
frank005 CreditAttribution: frank005 commentedComment #3
cassien CreditAttribution: cassien commentedI've had that problem today.
Just forgot to configure the token display of the content type. In my case, the field was hidden...
Comment #4
jfurnas CreditAttribution: jfurnas commentedsend HTML mail is an action made available by the mimemail module. This module currently does not support the ability to send filtered or full_html formatted text using tokens in an email.
If you are needing to do this, you will need to use the 'Send e-mail' action.
Comment #5
TR CreditAttribution: TR commentedAs #4 points out, the 'Send HTML e-mail' Rules action is provided by the Mime Mail module.