Email to Slack notifications: Teams, Telegram and more when attachments arrive

Email to Slack notifications: post new attachments, run summaries and error alerts to Slack, Teams, Telegram, Discord, ntfy or email automatically.

The Notifications window of Mail Attachment Downloader with nine notification channels, Slack, Microsoft Teams, Telegram, Discord, Google Chat, ntfy, Pushover, Custom webhook and Email, all Ready; Finance team (Slack) chosen with its saved Webhook URL, Max per run 50 and Send test message

Want a Slack message when an invoice email arrives, or a Teams alert when a download goes wrong? Mail Attachment Downloader posts it for you. Set up a channel once, then a rule’s Send notification step posts the sender, subject and saved files of the emails it picks, and a run summary says what each download did. It works the same for Microsoft Teams, Telegram, Discord, Google Chat, ntfy, Pushover, your own webhook and email.

The examples use Contoso’s mailbox finance@contoso.com, invoices from Acme and Northwind, and the channels Finance team (Slack) and Operations (Teams).

Which apps can get email notifications?

Nine kinds of channel, each set up once and shared by rules, run summaries and alerts:

  • Slack: an incoming webhook of a channel.
  • Microsoft Teams: a Workflows webhook of a channel.
  • Discord: a channel webhook. It can carry the files, up to 10 MB each.
  • Google Chat: a webhook of a space.
  • Telegram: your own bot, in a chat, group or channel. Files up to 50 MB.
  • ntfy: a topic on ntfy.sh or your own ntfy server, for push messages to your phone. Files up to 15 MB.
  • Pushover: push messages to your phone.
  • Custom webhook: JSON posted to any address, with an optional Authorization header.
  • Email: an HTML message from one of your own accounts, attachments up to 18 MB together.

Slack, Teams, Google Chat and Pushover get the files’ names instead of the files. There is no SMS, WhatsApp or PagerDuty channel; ntfy and Pushover reach a phone.

What you need

Step 1: Set up a Slack, Teams or Telegram channel

Open Settings › Sources › Notification Channels and click Manage… (or Settings › Run summary › Configure Channels…). In the Notifications window:

  1. Click Add, give the channel a Name, such as “Finance team (Slack)”, and pick its Type.
  2. Paste what the service gives you (see below). Where do I find this? opens the service’s own guide.
  3. Click Send test message. When it arrives, click OK.

A webhook address or token is a secret: it is kept encrypted on this computer and never shown again.

The Notifications window of Mail Attachment Downloader with nine notification channels, Slack, Microsoft Teams, Telegram, Discord, Google Chat, ntfy, Pushover, Custom webhook and Email, all Ready; Finance team (Slack) chosen with its saved Webhook URL, Max per run 50 and Send test message
The Notifications window: nine channels, each set up once. Here the Slack channel Finance team.

Slack, Discord and Google Chat: a webhook URL

Make an incoming webhook for the channel or space and paste it as the Webhook URL.

Microsoft Teams: a Workflows webhook

In Teams, open the channel’s … menu, choose Workflows and the template “Post to a channel when a webhook request is received”. Paste the address it gives as the Webhook URL. The old Office 365 connector webhooks stopped working in May 2026, so use Workflows.

Microsoft Teams notification channel in Mail Attachment Downloader: the channel Operations (Teams) of type Microsoft Teams with a saved Webhook URL, Where do I find this? and Send test message
A Teams channel takes the address of a Workflows webhook.

Telegram: a bot token and a chat ID

Create a bot with @BotFather in Telegram and paste its Bot token. Add the bot to the chat, then enter the Chat ID: a number such as -1001234567890 for a group or channel, or @channelname for a public channel.

Telegram email alerts in Mail Attachment Downloader: the channel On-call (Telegram) with a saved Bot token, a Chat ID and Max per run 50
Telegram: your bot’s token and the chat it posts to.

ntfy and Pushover: alerts on your phone

For ntfy, enter the Topic URL, such as https://ntfy.sh/ followed by a topic that is hard to guess (anyone who knows the topic can read it), and an Access token if the topic needs a sign-in. For Pushover, the App token and your User key (or a group key).

Email and your own webhook

An Email channel sends from one of your accounts that can send mail (SMTP, Exchange or Microsoft 365), picked in Send from, to the addresses in To, separated by commas. Don’t send it to a mailbox your rules download from. A Custom webhook gets a POST with a JSON document: source, kind, level, title, text, files, and the totals for run summaries.

Email notification channel Finance mailbox (email): Send from ap@acme.example, one of the accounts that can send mail (SMTP, Exchange or Microsoft 365), To finance@acme.example
An Email channel sends from one of your own accounts.

Step 2: A Slack or Teams notification for each new email attachment

With PRO Rules Server, a rule can post a message for the emails it picks. New to rules? Save emails and attachments to folders walks through a first one.

  1. On the PRO Rules tab, click New rule…, or pick a rule such as “Supplier invoices” and click Edit.
  2. Under Which emails, add the conditions, for example the sender’s domain acme.example and “.pdf” in the attachment name.
  3. Under Then, click Add a step…, open Notify and double-click Send notification.
The Add a step window of the Rule Editor with Notify chosen: Send notification, which tells you in Teams, in Slack, by email or through a web hook
Add a step › Notify › Send notification.

Then set up the step:

  • Channel: the channel, such as Finance team (Slack). Channels… adds one.
  • Title and Message: the subject and the sender, account and time to begin with. Click Fields… to add others, such as {FROM}, {SUBJECT} or an invoice number your rule found.
  • Attach: No files, The file it runs for, or Every file the rule saved from the email so far. The step says whether the channel gets the files or only their names.
  • Run: Once per email, For each saved file, or Both.

Click Send a test to post one with sample values, then Save. Test this rule… only describes the step: it sends nothing.

Mail Attachment Downloader's Send notification step on the rule Supplier invoices: the channel Finance team (Slack), the title New invoice from {FROM}, the subject and saved file name in the message, the file attached, for each saved file
The Send notification step: a message to Slack, Teams or another channel each time a rule saves a file.

A busy rule can’t flood a channel. The same email isn’t posted twice in one run, and each channel takes at most Max per run messages from rules in one download (50 to begin with; 0 means no limit), then one message saying the rest weren’t sent. A failed post is tried up to three times, and a service that says “too many requests” gets the wait it asks for.

Run summaries: one message when a download ends

A run summary says what a download did: how many emails and files were saved, and what went wrong. Open Settings › Run summary:

  • Send a summary when a run ends: Never, Always, Files saved or problems, or Only problems.
  • Send it to: tick the channels, each Short (the totals and the problems) or Detailed. A detailed summary by email lists the emails of the run, their files and what was done to them.
  • For these accounts: untick an account that should send none.

Send sample posts a made-up summary to see how it looks. A download of several accounts sends one summary for all of them, after the last one.

Run summary settings in Mail Attachment Downloader: send a summary when a run ends Always, to Finance team (Slack) and Operations (Teams) Short and Finance mailbox (email) Detailed, for 2 of 3 accounts, with Configure Channels and Send sample
Run summaries: short ones to Slack and Teams, a detailed one by email.

Error alerts: hear only when something goes wrong

Two ways to hear only about problems:

  • A run summary set to Only problems: nothing on a quiet day, a message when an email, a folder or a step failed.
  • A Send notification step under If something fails: in the Rule Editor, add the step to the rule’s If something fails section, and it runs when a step of that rule fails, such as an upload or a database write.

A notification that can’t be posted doesn’t stop the rule. To treat it as a failure, tick Treat a failed notification as an error of the rule under the step’s More options.

Alerts when an expected email doesn’t arrive

Expected emails tells you what didn’t come: a rule learns when Acme’s invoices usually arrive and sends a notification when one is late. See Alert if email not received.

What is sent, and where?

Only the title, the message and the files you chose, straight from your own system to the service. There is no Gearmage cloud in between, and webhook addresses and tokens never go into the settings, a rule or a log.

Questions people ask

Can I get a Slack notification only for emails from one sender?

Yes. The rule’s conditions decide: a sender, a subject, an attachment name, an account or a folder.

Can Telegram or Discord receive the attachment itself?

Yes. Telegram takes files up to 50 MB, Discord up to 10 MB, ntfy up to 15 MB, and an Email channel up to 18 MB together. A larger file is named instead.

Does it work when nobody is signed in to Windows?

Yes, with the Windows service of PRO Rules Server. The service sends notifications and run summaries too. After adding or changing a channel, reinstall the service so it gets the change.

Can the Parser post the values it reads?

Yes. The Parser’s Tell me output posts the values of each email, such as an invoice number and a total, to a channel. It needs PRO Rules Server.

Try it: download Mail Attachment Downloader and start with the free edition, or compare the PRO editions, each with a 30-day money-back guarantee.

Related

Questions about this post? Contact us.