Skip to main content

emailTemplateRenderAndSend

Render email template with data and send immediately.

Processes the specified email template with the provided data payload and sends the resulting email directly, bypassing the event queue for immediate delivery.

Possible errors:

  • TEMPLATE_NOT_FOUND: Template with specified ID does not exist
  • HANDLEBARS_RENDER_ERROR: Template rendering failed due to syntax or data issues
  • HANDLEBARS_PRECOMPILE_ERROR: Precompiled template rendering failed
  • HANDLEBARS_RENDER_VARIABLES_ERROR: Query variables rendering failed
  • TEMPLATE_DO_CUSTOM_QUERY_ERROR: Custom query execution failed
  • PUBSUB_TOPIC_PUBLISH_FAILED_ERROR: Failed to publish email send event to message queueAUTH: Role=[configuration.OWNER,configuration.EDITOR,configuration.VIEWER]
emailTemplateRenderAndSend(
id: String!
input: TemplateRenderInput!
): Boolean!

Arguments

emailTemplateRenderAndSend.id ● String! non-null scalar

Unique identifier for the email template to render and send.

UUID that uniquely identifies the email template in the system, used for retrieving the template content for rendering and sending.

emailTemplateRenderAndSend.input ● TemplateRenderInput! non-null input

Template rendering data payload for email generation.

Contains the dynamic data that will be merged with the email template content to generate personalized email content before sending.

Type

Boolean scalar

The Boolean scalar type represents true or false.