Email Webhooks TempMail

TempMail supports two delivery modes per address: Inbound (default) and Inbound + webhook. You can change this via the Settings button in the mail UI. We are currently working on the redirect mode (forward email).

Modes

Generic webhook payload

Your endpoint will receive a JSON POST like this:

{
"address": "to@tmail.example",
"to": "to@tmail.example",
"from": "sender@example.com",
"subject": "Subject line",
"text": "Plain text body (may be empty)",
"html": "HTML body (may be empty)",
"date": "RFC date header or ISO string"
}

Discord webhooks

If the redirect URL looks like a Discord webhook (e.g. https://discord.com/api/webhooks/...), TempMail sends a multipart/form-data request with a short message and an attached email.html file.

example Discord webhook payload

Tips

← Back to home