The API supports:
- A built-in default body (plain text or HTML)
- Predefined templates via
Template - Fully custom templates via
EmailTemplate/SubjectTemplate
Both subject and body templates support the following placeholders:
{Email}{Username}(empty string if not provided){Message}
For each entry in CustomFields, the key can be used as a placeholder:
- If
CustomFields = { "subject": "Pricing", "orderId": "123" } - You can use
{subject}and{orderId}in templates
If SubjectTemplate is omitted, the subject defaults to:
Message from {Username}
The API always appends the email ID:
... - [A3F2B1C9]
If EmailTemplate is not provided, the API renders a default template (HTML if IsHtml=true, otherwise plain text).
Provide any string and use placeholders described above.
Set Template to one of:
DefaultModernMinimalProfessionalAlert
Behavior:
- The template body is applied to
EmailTemplate - The template
IsHtmloverwritesIsHtml - If
SubjectTemplateis empty, the template subject is used