Proca.Service.Mailjet (proca v3.4.1)

Mailjet Email Backend

Template ids (refs) are integers

Templates:

  • Use transactional templates (not campaign)
  • Test thoroughly with their preview - MJ provides no debugging otherwise (just HTTP500 on send)
  • Fields can have underscores
  • Use {{var:foo_bar:"default"}} even with an empty default!
  • You cannot use default in some places: for example in attributes (href value).
  • You can conditionally show a block: use foo:"" in the field - but you need to use “greater then” + start of the string - no way to input “not empty” condition
  • The links prohibit use of default "" - so you must provide or hide it.
  • Use {% if var:givenname:"" %} and {% endif %} for conditional block

Link to this section Summary

Link to this section Functions

Link to this function

config(service)

Link to this function

error_message(list)

Link to this function

fatal_error?(errors)

Link to this function

put_template(email, tmpl)