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.

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.

Alert if email not received: know when an expected email doesn’t arrive

Alert if email not received on time: Mail Attachment Downloader learns when invoices, statements and reports arrive and tells Slack, Teams or email.

A missing email is easy to miss: nothing arrives, so nothing tells you. Mail Attachment Downloader can. Turn on Expected emails for a rule, and it learns when that rule’s emails normally arrive, shows any that are late, and sends an alert to Slack, Microsoft Teams or email when one is not received.

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

Which missing emails are worth an alert?

Any email you count on that comes on a rhythm:

  • Supplier invoices: Acme bills between the 1st and the 3rd of each month. A missing invoice means a late payment or a missed discount.
  • Bank statements: on the first business day of the month, for the month-end close.
  • Daily reports: the sales report that a system emails every weekday at 7:00.
  • Backups that email a log: a server backup that sends “Backup completed” each night. If the email doesn’t come, the backup may not have run.
  • Orders and files from partners: a weekly order list or price file from Northwind.

What you need

  • The edition: Expected emails is part of PRO Rules (PRO Rules Client, PRO Rules Server).
  • A rule for the emails: the rule that picks them, such as invoices from acme.example. Most people already have one that saves the attachments.
  • History on for the account: how often the emails arrive is read from History, so the rule needs some emails behind it to learn from.

How to get an alert if an email is not received

1. Open the rule

On the PRO Rules tab, pick the rule, such as “Supplier invoices”, and click Edit. New to rules? Save emails and attachments to folders walks through a first one.

2. Turn on Check for missing emails

In the Rule Editor, click Expected emails and tick Check for missing emails. The rule shows what it learned, for example “Monthly, days 1 to 3, about 9:00 AM. Learned from 11 emails.”

  • Split by: Sender, Sender’s domain, Folder or a field. One rule for all supplier invoices then tracks Acme and Northwind each on their own, since they send at different times.
  • Late after (minutes): how long after its usual time an email may come before it counts as late, such as 30.

Click Save. Nothing is done for emails that were due before you turned it on.

Expected emails in the Rule Editor of Mail Attachment Downloader for the rule Supplier invoices: Check for missing emails ticked, Monthly, days 1 to 3, about 9:00 AM learned from 11 emails, Split by Sender, Late after 30 minutes, and If an email is missing with 3 steps
Expected emails: the rule learned that Acme’s invoices come on days 1 to 3 of the month.

3. Choose what happens if an email is missing

Click If an email is missing. A missing email is always shown in the Downloads tab. Up to three steps can do more, each a number of minutes after the email is late (Minutes after it is late; 0 runs it at once):

  • Send a notification: a message to a channel, such as Finance team (Slack), Operations (Teams) or a mailbox.
  • Call a web address: tells another system, such as your ticket system, or a script that waits for web calls.
  • Email the sender: asks the sender to send it, from the rule’s mail account. Draft the email with AI writes the subject and message for you to read and change.

A typical set: notify Slack as soon as Acme’s invoice is late, email Acme a day later, and tell Teams if it still hasn’t come. A title or message can use {RULE}, {SENDER}, {DUE} and {LAST}; left empty, the step says the plain facts.

The program doesn’t nag. A sender whose emails have stopped is acted on for three emails in a row, an email to the same sender goes at most once every few days, and never while a rule is still learning.

Mail Attachment Downloader's Rule Editor on If an email is missing for the rule Supplier invoices: first a notification to the Finance team channel at once, then an email to the sender after 1440 minutes asking for the invoice, then a notification to Operations after 2880 minutes
If an email is missing: up to three steps, each a number of minutes after the email is late.

How does it know when an email is late?

It learns from the emails the rule has already handled: which days and about what time they come. Until it has seen enough, the rule shows Learning. Under More options you can also say it yourself:

  • How often: Use what was learned, Every day, Weekdays, Every week, Monthly, on days of the month, Monthly, on a business day from the start or Monthly, on the last business day, with a Usual time (hh:mm).
  • Holiday calendar: days the sender’s country keeps aren’t expected (United States, United Kingdom, Canada, Germany or Australia).
  • Days not expected: a supplier’s summer closing, for example.
  • Pause until: nothing is expected before a date.
  • Suggest with AI: describe the rhythm in words, such as “Invoices arrive on the second business day of the month”, and the AI suggests the pattern.

The defaults for every rule, such as when an email counts as late and how often senders may be emailed, are on the Schedule tab › Expected items.

Where you see a missing email

At the top of the Downloads tab, a notice says how many expected emails are missing and from which rules. Click See them for the list: the rule, who it was Expected from, when it was due, when the last one came, and what was done so far. For each one you can:

  • Search the mailbox now: runs the account at once, in case the email came late.
  • Received elsewhere: it came another way, such as by post. Nothing more is done.
  • Not expected that day: that day becomes a day off for the rule.
  • Stop expecting: a supplier you no longer use.
Missing email notification in the Downloads tab of Mail Attachment Downloader: 3 expected emails are missing, from the rules Supplier invoices (2) and Weekly sales report (1), with a See them link
The Downloads tab shows missing emails, rule by rule.

On the PRO Rules tab, the Expected column shows Late or Missing next to the rule.

The Missing list in the Downloads tab: three expected emails missing, from Acme Billing and Northwind Traders for the rule Supplier invoices and the Weekly sales report, with what was done so far and the buttons Search the mailbox now, Received elsewhere, Not expected that day, Stop expecting and Open the rule
The Downloads tab lists each missing email, what was done about it, and what you can do next.

Set up Slack, Teams or email notifications

Channels are set up once and shared by missing-email alerts, run summaries and error alerts. Open Settings › Run summary and click Configure Channels…. The Notifications window takes nine kinds: Slack, Microsoft Teams, Discord, Google Chat, Telegram, ntfy, Pushover, a custom webhook and email. Give each a name, paste its webhook address or fill in its details, and click Send test message.

The Notifications window of Mail Attachment Downloader with nine notification channels for missing email alerts: Finance team (Slack), Operations (Teams), Telegram, Discord, Google Chat, ntfy, Pushover, a custom webhook and Finance mailbox (email), with Send test message
Notification channels: set up once, used for alerts and run summaries.

Expected emails tells you what didn’t come. A Run summary tells you what did: after each download, how many emails and files were saved and what went wrong, sent always, or only when there were problems. Together, you hear about both. See Run summaries.

Run summary settings: send a summary when a run ends Always, to Finance team (Slack) and Operations (Teams) as Short and Finance mailbox (email) as Detailed, for 2 of 3 accounts
Run summaries: a short report to Slack or Teams after each download.

Missing files, too

A rule of a watch works the same way with Check for missing files. If the backup writes its log to a folder or a network share instead of emailing it, watch that folder and be told when tonight’s file doesn’t appear.

Questions people ask

Can I get an alert if an email is not received by a certain time?

Yes. Set a Usual time (hh:mm) and Late after (minutes). With a usual time of 07:00, Late after 30 and a notification at 0 minutes, you hear about it at about 7:30.

Does it work with Gmail and Microsoft 365?

Yes. It works with the accounts the program downloads from with History on: Gmail and Google Workspace, Microsoft 365 and Outlook.com, Exchange, and other IMAP mailboxes.

Does the program have to be running?

The checks are made by Mail Attachment Downloader, so keep it running. To check around the clock, even when nobody is signed in, install the Windows service of PRO Rules Server.

What if the sender changes the day?

With Use what was learned, the rule keeps learning from new emails. Or set the day yourself under How often.

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.