Mailhooks LogoMailhooks
Use CasesPricingDocsBlog
Use CasesPricingDocsBlog

Documentation

Getting Started

IntroductionQuick StartHow It Works

Guides

IMAP Client SetupBring Your Own StorageReal-time Notificationsn8n IntegrationDiscord IntegrationNotion IntegrationNotion CalendarCLI for Agents

API Reference

AuthenticationEmailsWebhooksInboxesDomainsReal-time (SSE)API Playground

Product

  • Features
  • Pricing

Legal

  • Terms of Service
  • Privacy Policy

Resources

  • Documentation
  • Blog
  • Discord

Contact

[email protected]

© 2026 Mailhooks. All rights reserved.

Email notifications in DiscordEmail notifications in Discord

Get instant alerts in your Discord server when emails arrive. Use our bot with slash commands or paste a webhook URL — your choice.

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

1

Add the bot

Click "Add to Discord" and select your server.

2

Connect with code

Run /mailhooks connect [code] to link your account.

3

Setup channel

Run /mailhooks setup #channel to configure notifications.

4

Receive emails

Send an email to your Mailhooks address.

5

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 connection

Handler 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.

Learn more about inbound email

What is inbound email?

A developer guide to receiving emails in your application.

IMAP vs webhooks

Compare the two approaches to receiving email.

Why receiving email is hard

The challenges of building email infrastructure.

Related Use Cases

Email to Webhook

Turn incoming emails into webhooks instantly.

Reply-by-Email

Let users respond to notifications from their inbox.

n8n Email Trigger

Trigger n8n workflows from inbound email.

Two ways to connect

Takes Under 2 minutes — no email infrastructure required.

1

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.

2

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.

3

Add your domain

Create a Mailhooks account and add a domain (auto-generated or custom). Link it to your Discord channel.

4

Test it out

Send an email to your Mailhooks address. Use /mailhooks test or send a real email to see it in action!

Get email alerts in Discord in under 2 minutes