Sending an email via Senderr using n8n
n8n is a powerful workflow automation tool that allows you to create custom integrations between different services. This guide shows you how to integrate Senderr email templates into your n8n workflows.Prerequisites
Before you begin, make sure you have:- An active n8n instance (cloud or self-hosted)
- A Senderr account with templates in your library
- A Senderr API key (generate one here)
- A Resend account for sending emails (sign up here)
Basic Workflow Setup
Step 1: Create a New Workflow
- Open your n8n instance
- Create a new workflow
- Add a trigger node (e.g., Manual Trigger, Webhook, or Schedule)
Step 2: Fetch Template List
Add an HTTP Request node to get your available templates:- In n8n, go to Settings → Environment Variables
- Add
SENDERR_API_KEYwith your API key value
Step 3: Get Template Schema
To understand what variables a template needs, fetch its schema:Step 4: Render Template with Variables
Add another HTTP Request node to render the template with your data:Step 5: Send Email with Resend
Finally, add a Resend node to send the rendered template:- Add the Resend node from the node library
- Configure it with your Resend API key
- Set the email parameters:
Advanced Example: Welcome Email Sequence
Here’s a complete workflow that sends a personalized welcome email when a new user signs up:Workflow Structure
- Webhook Trigger - Receives new user data
- Set Variables - Prepares template variables
- Get Template - Fetches the welcome email template
- Render Template - Populates it with user data
- Send Email - Delivers via Resend
- Log Activity - Records the action
HTTP Request Node Configuration
Node 1: Get Welcome TemplateError Handling
Add error handling to your workflow:Check API Response
Add an IF node after each HTTP request to check for success:Fallback Template
If the template fetch fails, use a fallback:Dynamic Template Selection
You can dynamically choose templates based on user data:Best Practices
1. Environment Variables
Store all sensitive data in environment variables:SENDERR_API_KEYRESEND_API_KEY- Template IDs for different email types
2. Error Handling
Always include error handling for:- API request failures
- Missing template variables
- Email delivery failures
3. Logging
Add logging nodes to track:- Template rendering success/failure
- Email delivery status
- User interaction data
4. Rate Limiting
Be mindful of API rate limits:- Senderr: Based on your subscription plan
- Resend: Check your plan limits
Common Use Cases
Customer Onboarding
- Welcome emails
- Setup instructions
- Feature introductions
E-commerce
- Order confirmations
- Shipping notifications
- Product recommendations
Marketing Automation
- Newsletter campaigns
- Promotional emails
- Re-engagement sequences
Transactional Emails
- Password resets
- Account notifications
- Billing updates
Troubleshooting
Authentication Issues
- Verify your API key is correct
- Check that environment variables are set
- Ensure API key has proper permissions
Template Not Found
- Check template ID is correct
- Verify template exists in your library
- Ensure template is published
Variable Errors
- Compare your variables with the template schema
- Check for required vs optional fields
- Validate variable data types
Email Delivery Issues
- Verify Resend API key and domain setup
- Check email format and recipient validity
- Review Resend delivery logs
Next Steps
- Explore more templates
- Check out Python integration
- Learn about TypeScript integration
- Visit the API reference