Groundmail docs
Send transactional email from your app: password resets, receipts, sign-in codes. Guides, the API reference and SDKs in one place.
Send your first email
One request with your API key. Before your domain is verified, send to your own account email from the sandbox sender.
Need a key? Create a free account.
curl -X POST https://api.groundmail.dev/emails \
-H "Authorization: Bearer $GROUNDMAIL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "noreply@mail.groundmail.dev",
"to": "you@example.com",
"subject": "Hello from Groundmail",
"html": "<p>It works.</p>"
}'import { Groundmail } from 'groundmail'
const groundmail = new Groundmail(process.env.GROUNDMAIL_API_KEY!)
const { id } = await groundmail.emails.send({
from: 'noreply@mail.groundmail.dev',
to: 'you@example.com',
subject: 'Hello from Groundmail',
html: '<p>It works.</p>',
})import os
from groundmail import Groundmail
groundmail = Groundmail(os.environ["GROUNDMAIL_API_KEY"])
result = groundmail.emails.send(
from_="noreply@mail.groundmail.dev",
to="you@example.com",
subject="Hello from Groundmail",
html="<p>It works.</p>",
)