Overview
This node integrates with the Taximail API to send transactional emails. Specifically, the "Send Email" operation allows users to send an email message either by using a predefined email template or by providing custom HTML content and subject line. This is useful for automating email notifications, marketing messages, or any scenario where programmatic email sending is required.
Practical examples include:
- Sending order confirmation emails to customers.
- Dispatching password reset or account verification emails.
- Delivering newsletters or promotional content using templates stored in Taximail.
Properties
| Name | Meaning |
|---|---|
| To Email | Recipient's email address (required). |
| From Email | Sender's email address (required). |
| From Name | Display name of the sender (required). |
| Email Template Key | Optional key to use an existing email template instead of custom content. |
| Subject | Email subject line; not needed if using an email template key. |
| HTML Content | HTML content of the email body; not needed if using an email template key. |
Output
The node outputs a JSON object containing the response from the Taximail API along with some additional metadata:
operation: The string"email"indicating the performed operation.message_id: A unique identifier generated for the sent email message. Users should save this ID to check delivery status later.- Other fields returned by the Taximail API related to the email sending result.
note: A message reminding to save themessage_idfor future status checks.
No binary data output is produced by this operation.
Example output snippet:
{
"operation": "email",
"message_id": "email_1680000000000_xxxxxxx",
"note": "Save this message_id to check delivery status later",
"...": "Other API response fields"
}
Dependencies
- Requires an API key credential for authenticating with the Taximail API.
- The node uses HTTP requests with authentication to communicate with Taximail endpoints.
- No additional environment variables are explicitly required beyond the API credential configuration in n8n.
Troubleshooting
- Missing Required Fields: Ensure that "To Email", "From Email", and "From Name" are provided as they are mandatory.
- Template vs Custom Content: If using an email template key, do not provide subject or HTML content. Conversely, if no template key is given, subject and HTML content must be supplied.
- API Authentication Errors: Verify that the API key credential is correctly configured and has sufficient permissions.
- Unknown Operation Error: This error occurs if an unsupported operation value is set; ensure the operation is set to "Send Email".
- Operation Failed: Generic failure message wrapping underlying API errors; check the detailed error message for specifics.
Links and References
- Taximail API Documentation (for detailed API usage and templates)
- n8n HTTP Request Node Documentation (for understanding authenticated HTTP requests)