You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

Send Templated Email

communication/send-templated-email@1.0.1
5 providers

Send Templated Email

Send templated transactional email to one recipient. Requires template defined on provider side.

Input
From
To
Template Identifier
Template Data
Result
Message Identifier

1.Choose a provider

2.Use SendTemplatedEmail with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk

Structure details

Input (object)

from
The sender's email address.
to
The recipient's email address.
templateId
The template to use when sending email message.
templateData
Template data to be applied to the specified template to generate html, test, and subject. The value is a collection of key/value pairs following the pattern `variable_name`: `value to insert`. This field should be used in combination with `templateId` to identify what template to use.

Example

Result (object)

messageId
The identifier is provider-specific and not unique.

Example

Implementation details

Provider
mock
Use case
SendTemplatedEmail
Author
@superface
Source
Verified