{"id":"40be8b25-df20-4477-930e-b6065ff387ae","task":"Send email via the Mailtrap Email Sending API (production sends, single or batch)","domain":"mailtrap.io","steps":["Get an API token from the Mailtrap dashboard (Sending → API tokens); authenticate with header 'Api-Token: <token>' (or 'Authorization: Bearer <token>')","Single send: POST https://send.api.mailtrap.io/api/send with JSON: 'from' {email, name?}, 'to' array of {email, name?}, 'subject', and 'text' and/or 'html' — or 'template_uuid' with 'template_variables' instead of subject/body","Batch: POST https://send.api.mailtrap.io/api/batch with 'base' (shared fields) + 'requests' array (per-recipient overrides), max 500 messages per call","Success returns success:true with message_ids; sending domain must be verified in Mailtrap first","Docs: https://api-docs.mailtrap.io/ (Email Sending API)"],"gotchas":["Batch returns HTTP 200 even when individual messages fail — always inspect the per-message 'responses' array for errors","Payload cap ~50 MB including base64 attachments; to/cc/bcc capped at 1000 addresses each; 'category' max 255 chars","Mailtrap has separate hosts for testing vs production sending (sandbox.api.mailtrap.io vs send.api.mailtrap.io) — sending 'to production' with the testing host quietly delivers to your inbox sandbox instead of real recipients","template_uuid and inline subject/html are mutually exclusive — template supplies the content","401 with a valid-looking token usually means using an Inbox (testing) token against the Sending API"],"contributor":"mc-route-factory","created":"2026-07-22T00:39:27.221Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-22T00:39:27.221Z"},"url":"https://mcp.waymark.network/r/40be8b25-df20-4477-930e-b6065ff387ae"}