Mandrill Email Service

This workflow automates email sending via Mandrill, triggered by webhook requests. Key nodes include Email Webhook (receives requests), Validate Input (sanitizes email/subject/html), Check Validation (ensures valid inputs), Rate Limit Check (monitors usage), Send HTML Email (Mandrill API interaction), Log Email Attempt (records attempt), Check Email Success (validates response), Success Response (returns success), Email Error Response (handles API errors), and Validation Error Response (manages invalid inputs). It uses the Mandrill API.\n\nSetup Requirements: Install n8n from n8n.io or sign up at cloud.n8n.io. Import the JSON into n8n’s workflow editor. Create a Mandrill account at mandrill.com and obtain an API key (Settings > SMTP & API Credentials > New API Key). In n8n, configure Mandrill credentials (API Key, From Name). Set up Email Webhook with path send-email and header authentication (e.g., Bearer YOUR_TOKEN). Integrate your app to send POST requests with toEmail, fromEmail, subject, and html. Handle errors like invalid email (400: Invalid input data) or incorrect API key (500: Email delivery failed). Ensure header auth credentials are set in n8n (Credentials > HTTP Header Auth).\n\nTesting and Deployment: Import the JSON into n8n. Send a POST request to the webhook URL with JSON: {"toEmail": "test@example.com", "fromEmail": "noreply@your-domain.com", "subject": "Test Email", "html": "<p>Hello</p>"} and valid auth header. Verify Validate Input sanitizes inputs and Check Validation passes. Confirm Send HTML Email delivers the email and Success Response returns status 200 with messageId. Test with invalid inputs (e.g., {"toEmail": "invalid"}) to trigger Validation Error Response (400: Invalid input data). Use an incorrect API key to trigger Email Error Response (500: Failed to send email). Monitor logs for rate limits (429: Too Many Requests). If emails fail, verify Mandrill API key and sender domain. Activate the workflow in n8n and ensure the webhook is live. Deploy for automated email sending with error handling and response validation.

$5.49

Workflow steps: 10

Integrated apps: webhook, set, if

Mandrill Email Service preview