Email
Templates
SMTP
Description
Content type : application/json
Sends custom emails with optional HTML templates and SMTP configuration. Supports template variables replacement and custom SMTP credentials.
Request Body
Required
{
"clientId": "your-client-id",
"clientSecret": "your-client-secret",
"emailTo": ["recipient1@example.com", "recipient2@example.com"],
"subject": "Email Subject",
"templateName": "optional-template-name",
"htmlTemplate": "Hello {{name}}!",
"smtpCredentials": {
"email": "sender@example.com",
"host": "smtp.example.com",
"port": 587,
"password": "smtp-password"
},
"keyValuePair": [
{
"key": "name",
"value": "John Doe"
},
{
"key": "company",
"value": "Example Corp"
}
]
}
Field Descriptions:
- clientId, clientSecret - Authentication credentials (required)
- emailTo - Array of recipient email addresses (required)
- subject - Email subject line (required)
- templateName - Name of predefined template (optional)
- htmlTemplate - Custom HTML template (optional, used if templateName not provided)
- smtpCredentials - Custom SMTP configuration (optional)
- keyValuePair - Template variables for replacement (optional)