Answers.Body: <p>easy answer indeed :
  send an e-mail with this code</p>
  <pre><code>&lt;p&gt;{$smarty.now|date_format}&lt;/p&gt;
  &lt;p&gt;{$smarty.version}&lt;/p&gt;
  </code></pre>
  <p>You should get something like:</p>
  <blockquote>
  <p>Jan 14, 2021</p>
  <p>2.6.31</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-14T16:07:59.460Z
Answers.LastActivityDate: 2021-01-14T16:07:59.460Z
Answers.UserDisplayName: Guillaume Sorel
Body: <p>On WP 5.6 / CiviCRM 5.32 we can't succeed to send HTML e-mails using css in <code>&lt;style&gt;</code> and <code>{literal}</code> (see <a href="https://civicrm.stackexchange.com/questions/38154/send-email-in-html-on-wordpress/38256#38256">this post</a>) knowing that we succeed in sending html templates with in-line css.</p>
  <p>Smarty is set on '1' in civicrm.settings.php but my question is if smarty is &quot;really&quot; activated and if there's a way to check this parameter.</p>
  <pre><code>* 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 );
  }
  </code></pre>
  <p>Any idea?</p>
  
Tags: <smarty>
Title: How to know if Smarty is really activated on WordPress?
ThreadText: # How to know if Smarty is really activated on WordPress?
  
  (Asked by: username_0 on 2021-01-04)
  
  On WP 5.6 / CiviCRM 5.32 we can't succeed to send HTML e-mails using css in
  
  **Tags:** smarty
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-01-14. Score: 0 | Accepted answer
  
  easy answer indeed :
  send an e-mail with this code
  {$smarty.now|date_format}
  {$smarty.version}
  
  You should get something like:
  
  Jan 14, 2021
  2.6.31
  
  
  ---
  
  