Answers.Body: <p>Thank you Demerit. I misunderstood how tokens work and was trying to use system workflow tokens in a user template.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-09T20:11:43.320Z
Answers.LastActivityDate: 2021-04-09T20:11:43.320Z
Answers.UserDisplayName: Dave Hassall
Body: <p>We are running civicrm 5.33.1, wordpress 5.7, php 7.4.</p>
  <p>The following test template only translates the contact.email greeting, the others stay as they are as do all other tokens in our templates.</p>
  <p>Dear {contact.email_greeting}</p>
  <p>{domain.address}</p>
  <p>{domain.email}</p>
  <p>{domain.phone}</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-09T11:15:56.307Z
Comments.Text: I have seen advice saying we need to edit civicrm.settings.php and change the following.            if (!defined('CIVICRM_MAIL_SMARTY')) {
    define( 'CIVICRM_MAIL_SMARTY', 0 );
  }  by setting it to 1. However when I do this the system just hangs when I click send the email with template.
Comments.UserDisplayName: Dave Hassall
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-09T12:29:12.067Z
Comments.Text: Is this the same as https://civicrm.stackexchange.com/questions/21984/domain-tokens-not-parsed-in-regular-mail ?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-09T20:11:12.703Z
Comments.Text: Thank you Demerit. I misunderstood how tokens work and was trying to use system workflow tokens in a user template.
Comments.UserDisplayName: Dave Hassall
Tags: <smarty>
Title: Smarty template tokens not translating
ThreadText: # Smarty template tokens not translating
  
  (Asked by: username_0 on 2021-04-09)
  
  We are running civicrm 5.33.1, wordpress 5.7, php 7.4.
  
  The following test template only translates the contact.email greeting, the others stay as they are as do all other tokens in our templates.
  
  Dear {contact.email\_greeting}
  
  {domain.address}
  
  {domain.email}
  
  {domain.phone}
  
  **Tags:** smarty
  
  > **Comments:**
  > **username_0**: I have seen advice saying we need to edit civicrm.settings.php and change the following.            if (!defined('CIVICRM_MAIL_SMARTY')) {   define( 'CIVICRM_MAIL_SMARTY', 0 ); }  by setting it to 1. However when I do this the system just hangs when I click send the email with template.  
  > **username_1**: Is this the same as https://civicrm.stackexchange.com/questions/21984/domain-tokens-not-parsed-in-regular-mail ?  
  > **username_0**: Thank you username_1. I misunderstood how tokens work and was trying to use system workflow tokens in a user template.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-04-09. Score: 1
  
  Thank you username_1. I misunderstood how tokens work and was trying to use system workflow tokens in a user template.
  
  
  ---
  
  