get template

This block is part of the mssgs mail group and was last modified in core v15.0.1.

get template v15.0.1

Reads one template stored on mssgs mail for this sender domain.

In pins 2 + flow
  • flow
    flow
  • connection required
    mssgsmailconnection
  • template alias required
    value

    The alias the template was saved under.

Out pins 4 + flow
  • flow
    flow
  • connection
    mssgsmailconnection
  • success
    condition
  • error
    value

    The refusal as CODE: message, e.g. RECIPIENT_SUPPRESSED, DOMAIN_CEILING, INVALID_FROM, INVALID_API_KEY. Empty on success.

  • template
    object

    The template document.

GET email/templates/:alias. Returns {alias, name, subject, html, text} for the API key's domain; error TEMPLATE_NOT_FOUND otherwise. Suppressed in a simulation.

mssgsmail
mssgs mail
email
template

A typical wiring for get template: a function trigger starts the flow; open connection feeds the connection pin; value feeds the alias pin; the flow out pin feeds debug.

Studio canvas example for the get template block: typical wiring for get template.

Version history

Introduced in v15.0.1.


Back to mssgs mail Return to the main group to view all sub-groups Back to mssgs mail Return to the group to view all blocks within this group