Answers.Body: <p>Actually there is also a setting in &quot;CiviMail Component Settings&quot;, not sure how long it's been there.</p>
  <p>&quot;Use Smarty in scheduled reminders&quot; must be checked on.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-12T05:31:03.240Z
Answers.Text: 'twas added in 5.60
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-15T07:14:33.697Z
Answers.Text: okay! good news, I've missed this point in the changelog :-)
Answers.UserDisplayName: Guillaume Sorel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-12T05:21:43.307Z
Answers.LastActivityDate: 2023-05-16T08:21:42.480Z
Answers.LastEditDate: 2023-05-16T08:21:42.480Z
Answers.UserDisplayName: MickC
Answers.Body: <p>As said by Demerit, You can use smarty logics in Scheduled reminders also, but you need to set CIVICRM_MAIL_SMARTY to 1 in civicrm.settings.php</p>
  <pre><code>define( 'CIVICRM_MAIL_SMARTY', 1 );
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-04T09:28:01.850Z
Answers.Text: if you're sure it works also for scheduled reminders, then I need to check our syntax! thanks.
Answers.UserDisplayName: Guillaume Sorel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-05T00:37:32.123Z
Answers.Text: Despite having this setting on in the settings file, Smarty is not working for us in scheduled reminders (tested it for event reminders only, though not sure it matters).
Answers.UserDisplayName: MtnPavlas
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-21T12:48:22.280Z
Answers.Text: Confirm it does not work on activity reminders either. The email simply does not go out.
Answers.UserDisplayName: Tony Horrocks
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-21T16:51:23.487Z
Answers.Text: may be your editor is converting smarty code
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-27T10:39:05.523Z
Answers.Text: I tested again and it does work
Answers.UserDisplayName: Tony Horrocks
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-03T20:26:06.793Z
Answers.LastActivityDate: 2022-05-03T20:26:06.793Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Title says it all, I need to format some tokens and Smarty doesn't seem to work.</p>
  <p>Is it possible to use smarty for Scheduled reminders?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-03T16:11:29.843Z
Comments.Text: I can never remember what works where but do you have CIVICRM_MAIL_SMARTY turned on in civicrm.settings.php?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-04T09:27:01.147Z
Comments.Text: yes it's on. we're using it elsewhere
Comments.UserDisplayName: Guillaume Sorel
Tags: <smarty>
Title: Can I use Smarty in Scheduled reminders?
ThreadText: # Can I use Smarty in Scheduled reminders?
  
  (Asked by: username_0 on 2022-05-03)
  
  Title says it all, I need to format some tokens and Smarty doesn't seem to work.
  
  Is it possible to use smarty for Scheduled reminders?
  
  **Tags:** smarty
  
  > **Comments:**
  > **username_1**: I can never remember what works where but do you have CIVICRM_MAIL_SMARTY turned on in civicrm.settings.php?  
  > **username_0**: yes it's on. we're using it elsewhere  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2023-05-12. Score: 2 | Accepted answer
  
  Actually there is also a setting in "CiviMail Component Settings", not sure how long it's been there.
  
  "Use Smarty in scheduled reminders" must be checked on.
  
  > **Comments:**
  > **username_1**: 'twas added in 5.60  
  > **username_0**: okay! good news, I've missed this point in the changelog :-)  
  
  ---
  
  ### Answer by username_3 on 2022-05-03. Score: 2
  
  As said by username_1, You can use smarty logics in Scheduled reminders also, but you need to set CIVICRM_MAIL_SMARTY to 1 in civicrm.settings.php
  define( 'CIVICRM_MAIL_SMARTY', 1 );
  
  > **Comments:**
  > **username_0**: if you're sure it works also for scheduled reminders, then I need to check our syntax! thanks.  
  > **username_4**: Despite having this setting on in the settings file, Smarty is not working for us in scheduled reminders (tested it for event reminders only, though not sure it matters).  
  > **username_5**: Confirm it does not work on activity reminders either. The email simply does not go out.  
  > **username_3**: may be your editor is converting smarty code  
  > **username_5**: I tested again and it does work  
  
  ---
  
  