The Problem
- You need to know immediately when important emails arrive
- Email clients bury notifications or delay them for hours
- Your team uses Discord for communication but misses email alerts
- Building custom notification bots requires coding and maintenance
- Polling email or running IMAP listeners is complex and unreliable
Why Existing Solutions Fall Short
Email forwarding to Discord bots loses formatting and attachments
Custom bots require hosting, maintenance, and coding skills
IFTTT and Zapier have delays and limited email parsing
Most solutions require exposing email credentials or forwarding passwords
You shouldn't have to build this yourself.
How Mailhooks Solves This
Two Integration Options
Use our Discord bot with slash commands, or paste a webhook URL. Pick what works for your team.
Instant Notifications
Receive Discord messages the moment an email arrives. No polling delays.
Rich Formatting
Beautiful embeds with sender, subject, preview, and authentication status.
Slash Commands
Configure everything in Discord with /mailhooks setup, /mailhooks test, and more.
How the Discord Bot works
Add the bot
Click "Add to Discord" and select your server.
Connect with code
Run /mailhooks connect [code] to link your account.
Setup channel
Run /mailhooks setup #channel to configure notifications.
Receive emails
Send an email to your Mailhooks address.
Get notified
Your Discord channel receives a rich notification instantly.
Code Example
Discord notifications include rich embeds with all the email details your team needs.
Webhook Payload
// Discord Bot Slash Commands
/mailhooks connect abc123...
→ Links your Discord server to Mailhooks
/mailhooks setup #alerts
→ Sets #alerts as notification channel
/mailhooks setup #orders domain:shop.example.com
→ Only emails to shop.example.com go to #orders
/mailhooks status
→ Shows current configuration
/mailhooks test
→ Sends a test notification
/mailhooks disconnect
→ Removes the connectionHandler Code
// What your team sees in Discord:
// ┌─────────────────────────────────────┐
// │ 📧 New order #12345 │
// │ │
// │ Order confirmed. Your package... │
// │ │
// │ From: [email protected] │
// │ To: [email protected] │
// │ │
// │ ✅ SPF ✅ DKIM ✅ DMARC │
// │ │
// │ 📎 invoice.pdf (45 KB) │
// │ │
// │ Received via Mailhooks • Today 10:30│
// └─────────────────────────────────────┘
// The bot handles everything — no code needed!Frequently Asked Questions
The Discord bot lets you configure everything with slash commands directly in Discord — no need to copy webhook URLs. It also shows connected servers in your Mailhooks dashboard. Webhooks are simpler if you just need basic notifications to one channel.
When you click "Add to Discord", you get a connection code. Add the bot to your server, then run /mailhooks connect [code] to link it to your Mailhooks account. The bot verifies the code and activates your connection.
Yes! With the bot, run /mailhooks setup #channel domain:example.com to route emails for specific domains to specific channels. You can have multiple channels configured with different filters.
No! Mailhooks handles everything. Whether you use the bot or webhooks, there's no hosting, no code, and no maintenance required.
Yes! You can configure a role ID to mention when notifications are sent, so the right people get alerted immediately.
Every Discord notification includes the email authentication status with visual indicators, so you can see at a glance if an email is legitimate.
Absolutely. Discord notifications and API webhooks work independently. You can send the same email to Discord for team alerts and to your API for automated processing.
Two ways to connect
Takes Under 2 minutes — no email infrastructure required.
Option 1: Discord Bot (recommended)
Click "Add to Discord" in your dashboard, select your server, then use /mailhooks connect [code] to link it. Configure channels with /mailhooks setup #channel.
Option 2: Webhook URL
In Discord, right-click a channel → Edit → Integrations → Webhooks → New Webhook. Copy the URL and paste it in Mailhooks under Hooks → Discord.
Add your domain
Create a Mailhooks account and add a domain (auto-generated or custom). Link it to your Discord channel.
Test it out
Send an email to your Mailhooks address. Use /mailhooks test or send a real email to see it in action!