Email Service: Mandrill Integration

This workflow automates email sending via Mandrill using a webhook endpoint, replacing manual email tasks that consume 8+ hours weekly for teams handling 200+ emails monthly. It processes POST requests to send both templated and HTML emails, with validation, sanitization, and DevHubConnect branding. Key nodes include Webhook (Email Webhook) for input, Code (Input Validator) for processing and validation, Mandrill (Template Email and HTML Email) for sending emails, and Code (Success Response) for output. Ideal for marketing or customer support teams (3-10 staff) in e-commerce, SaaS, or services ($500K-$5M revenue), it reduces email processing time by 85% for 200-2,000 emails monthly.\n\nSaves 6 hours/week on 200+ emails, improving efficiency by 85%. Suits email marketing, customer notifications, or transactional emails. Requires Mandrill API ($0-$100/month, mandrill.com), n8n ($20/month cloud). Scalable to 5,000 emails/month; needs HTTPS.\n\nSetup Instructions:\n1. Install n8n via cloud.n8n.io or self-host (docker run -it --rm -p 5678:5678 n8nio/n8n).\n2. Set up Mandrill API at mandrill.com; configure mandrillApi in devhubconnect-mandrill-api with API key.\n3. Configure webhook (https://your-n8n.app/webhook/mandrill-email) for POST requests.\n4. Set environment variable: MANDRILL_API_KEY.\n\nTesting:\n- POST {toEmail: 'test@example.com', subject: 'Test Email', template: 'welcome', templateVars: {name: 'John'}}. Verify both templated and HTML emails sent.\n- Test invalid input: POST {toEmail: 'invalid'}. Check error response for invalid email.\n\nErrors:\n- 400 (invalid email, ensure toEmail and fromEmail are valid).\n- 500 (API failure, verify Mandrill API key or network).\n\nMaintenance:\n- Rotate Mandrill API key quarterly.\n- Monitor n8n logs for API errors.\n- Review email deliverability monthly in Mandrill dashboard.\n\nOptimization:\n- Add rate limiting in Input Validator for high-traffic scenarios.\n- Integrate Google Sheets for logging email sends.\n- Customize htmlContent styling in Input Validator for brand consistency.", "businessValue": "Saves 6 hours/week on 200+ emails with 85% faster delivery", "setupTime": "20-30 minutes", "difficulty": "Intermediate", "requirements": [ "Mandrill API ($0-$100/month, mandrill.com)", "n8n cloud ($20/month) or self-hosted", "Stable HTTPS connection", "Environment variable: MANDRILL_API_KEY" ], "useCase": "Automating templated and HTML email sending via Mandrill for marketing and notifications"

$5.49

Workflow steps: 5

Integrated apps: webhook, code, mandrill

Email Service: Mandrill Integration preview