Steps
Create a Discord webhook
In the channel: Edit Channel → Integrations → Webhooks → New Webhook → Copy URL. New to webhooks? See Discord webhooks for beginners.
Download the agent
Get the email to Discord agent. Try
python3 email_to_discord.py --eml-dir sample_emails --dry-run.Connect one inbox
Set
IMAP_HOST,IMAP_USER,IMAP_PASSWORD(app password) andDISCORD_WEBHOOK_URL. The first run only remembers existing mail, so nothing old gets posted.Add filters or more inboxes
Use
SUBJECT_CONTAINS=order,booking,FROM_CONTAINSorEXCLUDE=newsletter. For several inboxes, copyinboxes.example.jsonand give each inbox its own filters and webhook.Run it every 5 minutes
Cron
*/5 * * * *, or import the n8n workflow, which uses an IMAP trigger and posts instantly.
Good uses
- A support@ inbox shared with a small team on Discord.
- Order or booking notifications in one channel.
- Server alerts that only arrive by email.
Safety
Emails are never marked read, moved or deleted. Pings are disabled, so an email containing @everyone can't ping your server. Don't connect an inbox that receives login codes or bank emails to a channel others can read.
Skip the setup: free download
The Email to Discord agent does all of this. It's tested, MIT-licensed, and comes as an n8n workflow plus a Python script.
Get the free Email to Discord agent → Or have us build yours →
FAQ
Do I need a Discord bot?
No. A webhook URL is enough, and nothing needs to stay online except the script or n8n.
Does it post attachments?
It lists attachment names. Pair it with the attachment saver if you need the files.
Why not Gmail forwarding to Discord?
Discord has no email address to forward to. Something has to read the mail and call the webhook, and that's what this does.
Related guides
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- Forward emails to Telegram (Gmail, Outlook, any IMAP), free and no bot hosting
- Automatically save email attachments to a folder (Gmail, Outlook, any IMAP)
- n8n Markdown node not working: tables, line breaks and AI output in emails, 38 runs
- 13 free n8n workflow templates for beginners (tested, import-ready JSON)