Two ways to send
Every guide uses one of the two ways in, or both. They share limits, suppressions, events and webhooks.
- SMTP, for anything that already sends mail (a framework's mailer, a CMS, an automation tool). Your API key is the password:
SMTP
Host smtp.hermaily.com
Port 587 (STARTTLS) or 465 (implicit TLS)
Username apikey
Password your API key (hm_...)- HTTP API,
POST https://api.hermaily.com/v1/sendwithAuthorization: Bearer hm_..., when you want the message id in the response, tags and metadata that come back in webhooks, or when your host blocks the SMTP ports (it goes over 443).
Before any of them you need an account, a verified domain and an API key for that domain; each guide starts there. The full reference is in the documentation and in openapi.yaml.
Frameworks
| Guide | Sends with | What it covers |
|---|---|---|
| Laravel | SMTP, Mailgun mailer | .env for the SMTP mailer, Mailables and queues, broadcast header, tags and metadata with the Mailgun mailer, webhook route |
| Symfony | SMTP, Mailgun bridge, HTTP API | MAILER_DSN, TemplatedEmail, Messenger async transport, tags and metadata with the Mailgun bridge, HttpClient, webhook controller or Webhook component |
| Django | SMTP | settings.py for the SMTP backend, send_mail and EmailMultiAlternatives, sendtestemail, webhook view |
| Ruby on Rails | SMTP | Action Mailer smtp_settings, credentials, deliver_later, broadcast header, webhook controller |
| Next.js | HTTP API | Server-only helper, server action, route handler, webhook route with the raw body |
Languages
| Guide | Sends with | What it covers |
|---|---|---|
| Node.js | SMTP, HTTP API | Nodemailer, fetch to /v1/send, message lookup, Express webhook, existing SDKs |
| Python | HTTP API, SMTP | requests to /v1/send and batches, smtplib, Flask webhook, existing SDKs |
| PHP | SMTP, HTTP API | PHPMailer with STARTTLS, curl to /v1/send, webhook script, existing SDKs |
Platforms and tools
| Guide | Sends with | What it covers |
|---|---|---|
| Supabase | SMTP, HTTP API | Auth custom SMTP (dashboard, config.toml, self-hosted), Edge Functions that send and receive webhooks |
| Ghost | SMTP | config.production.json and Docker variables for transactional email; what newsletters need |
| Strapi | SMTP, Mailgun provider | Nodemailer provider, Users & Permissions sender, sending from code, Mailgun provider over HTTPS |
| n8n | SMTP, HTTP API | Send Email node, HTTP Request node, Webhook node with signature check, the instance's own SMTP |
WordPress, migrations and the rest
- WordPress: the Hermaily plugin over HTTPS, or WP Mail SMTP and Gravity SMTP. For stores, the WooCommerce guide.
- Coming from another provider: keep your library and change the base URL. From SendGrid, from Mailgun, from Postmark and from Resend.
- Anything else that speaks SMTP (an ERP, a printer that mails reports, a monitoring tool): the SMTP settings are all it needs.
Missing your stack? Write to support@hermaily.com.
Start with the free plan
300 emails a month to try any of these guides, with your domain verified.