Zum Inhalt springen

previewMailTemplate

Renders the compiled HTML of a template with sample data. Authorized.

Type: MailTemplatePreviewResult!

Arguments

  • id: UID! — UID of the mail template.
  • languageCode: String
  • sampleData: JSON — Sample recipient data for the Handlebars merge fields.
mutation($id: UID!, $languageCode: String, $sampleData: JSON) {
previewMailTemplate(id: $id, languageCode: $languageCode, sampleData: $sampleData) {
html
subject
}
}