2

I have a template with Smarty strings.

If I send the email from inside CiviCRM, Smarty works fine (it shows "Cher Guillaume"):

enter image description here

If I send the same template using a CiviRule, it doesn't work:

enter image description here

although it attaches a .pdf file with Smarty Strings inside that also work fine.

Is there a reason related to CiviRule?

Any idea?

best Regards

Guillaume

1 Answer 1

1

There used to be a diffence in the way tokens behave in the Email or PDF API, as far as I know this has been fixed in the latest versions of the extensions Email API and PDF API. Can you check if you have these latest versions installed?

7
  • Hi Erik, E-mail API is 1.19 and PDF API is 2.4, so I guess up-to-date. Nov 20, 2019 at 18:22
  • And the Smarty switch in your civicrm.settings is on? I assume you are not using a token? Nov 20, 2019 at 20:13
  • this is what I have in civicrm.settings : /** * Enable this constant, if you want to send your email through the smarty * templating engine(allows you to do conditional and more complex logic) * */ if (!defined('CIVICRM_MAIL_SMARTY')) { define( 'CIVICRM_MAIL_SMARTY', 1 ); } I don't use tokens just strings Nov 21, 2019 at 8:23
  • I do recommend using tokens if at all possible :-). As far as the problem goes: I can not really say from a distance if this behaviour is still a bug or something is wrong in your specific installation or use case unfortunately...:-( Nov 21, 2019 at 8:42
  • Ok I understand. This is not a major issue. How can I learn to use tokens? Nov 21, 2019 at 8:46

Your Answer

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

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