Guides

Integration guides

Configuration, a first message, events and webhooks, and the errors you may run into, for each framework, language and platform. Exact settings and code you can copy.

  • SMTP smtp.hermaily.com:587
  • API https://api.hermaily.com
  • 11 guides

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/send with Authorization: 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

GuideSends withWhat it covers
LaravelSMTP, Mailgun mailer.env for the SMTP mailer, Mailables and queues, broadcast header, tags and metadata with the Mailgun mailer, webhook route
SymfonySMTP, Mailgun bridge, HTTP APIMAILER_DSN, TemplatedEmail, Messenger async transport, tags and metadata with the Mailgun bridge, HttpClient, webhook controller or Webhook component
DjangoSMTPsettings.py for the SMTP backend, send_mail and EmailMultiAlternatives, sendtestemail, webhook view
Ruby on RailsSMTPAction Mailer smtp_settings, credentials, deliver_later, broadcast header, webhook controller
Next.jsHTTP APIServer-only helper, server action, route handler, webhook route with the raw body

Languages

GuideSends withWhat it covers
Node.jsSMTP, HTTP APINodemailer, fetch to /v1/send, message lookup, Express webhook, existing SDKs
PythonHTTP API, SMTPrequests to /v1/send and batches, smtplib, Flask webhook, existing SDKs
PHPSMTP, HTTP APIPHPMailer with STARTTLS, curl to /v1/send, webhook script, existing SDKs

Platforms and tools

GuideSends withWhat it covers
SupabaseSMTP, HTTP APIAuth custom SMTP (dashboard, config.toml, self-hosted), Edge Functions that send and receive webhooks
GhostSMTPconfig.production.json and Docker variables for transactional email; what newsletters need
StrapiSMTP, Mailgun providerNodemailer provider, Users & Permissions sender, sending from code, Mailgun provider over HTTPS
n8nSMTP, HTTP APISend Email node, HTTP Request node, Webhook node with signature check, the instance's own SMTP

WordPress, migrations and the rest

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.

Create a free account