Announcement

Collapse
No announcement yet.

Conditions in E-Mail Templates (again)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Conditions in E-Mail Templates (again)

    I would like to include simple conditions in a mail template. The documentation says that you can use the same logic as for PDF creation. Nevertheless, the following condition does not work in the template:

    {{#ifEqual Person.salutationName 'Mr.'}}
    <p>Dear Mr. {Person.lastName}</p>
    {{/ifEqual}}

    If I enter {Person.salutationName} in the template, I get Mr. correctly. The problem must therefore lie with the #ifEqual clause. But why? It must be a standard feature of a CRM to be able to send personalized emails.

    Any help really appreciated!
    Andreas

  • #2
    Hi penzelan,

    Please try to use the following example in your email template code:
    Code:
    {{#ifEqual salutationName 'Mr.'}}
    <p>Dear Mr. {Person.lastName}</p>
    {{/ifEqual}}

    Comment


    • #3
      Great, that worked!
      Thank you

      Comment

      Working...
      X