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?

  • 2
    I can never remember what works where but do you have CIVICRM_MAIL_SMARTY turned on in civicrm.settings.php?
    – Demerit
    May 3, 2022 at 16:11
  • yes it's on. we're using it elsewhere May 4, 2022 at 9:27

2 Answers 2


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.

  • 'twas added in 5.60
    – Demerit
    May 12, 2023 at 5:31
  • okay! good news, I've missed this point in the changelog :-) May 15, 2023 at 7:14

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

define( 'CIVICRM_MAIL_SMARTY', 1 );
  • if you're sure it works also for scheduled reminders, then I need to check our syntax! thanks. May 4, 2022 at 9:28
  • 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).
    – MtnPavlas
    Apr 5, 2023 at 0:37
  • Confirm it does not work on activity reminders either. The email simply does not go out. Apr 21, 2023 at 12:48
  • may be your editor is converting smarty code Apr 21, 2023 at 16:51
  • I tested again and it does work Apr 27 at 10:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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