
Quite the opposite, they can enrich each other in many different ways. It seems that instant messaging platforms and email clients don’t necessarily need to compete with each other. Today, we’re going to explore how to get email and Slack to work together by sending emails from Slack, and receiving email into your Slack channels. All of this while email is still alive and possibly doing better than ever before. Although they haven’t come close to that, they have achieved enormous success and have millions of daily active users, including the majority of the Fortune 100 companies. The message body will consist of the original email’s subject line by default you can customize this behavior in the Flask app.Slack took markets by storm with its audacious goal of killing email. Messages from the same sender will always have the same avatar. Take note of the “Default SMTP Login”, which looks something like into Gmail (or whatever email client you use) and set up email filters that forward incoming messages to the Mailgun address obtained in the previous step.Īny incoming email that matches your filter(s) will now be forwarded to Mailgun, which will in turn forward it to the Flask app running on your server, which will finally forward it to Slack.

Go to the Domains section of your Mailgun control panel and click on the sandbox entry. I use it to host from a Raspberry Pi within my office’s LAN.) (If your server isn’t already accessible from the internet, ngrok may come in handy. Replace with the public address of your server. Go to the Routes section of your Mailgun control panel and create a new route with filter expression catch_all() and action forward(""). Install the app’s library dependencies with pip install Flask requests. Edit the values of SLACK_TOKEN and SLACK_CHANNEL to contain your Slack API token and the desired channel, respectively.

It’s a tiny Flask app that listens for incoming messages and forwards them to Slack. Things you’ll need:Ĭopy this file to your server. Here’s a DIY solution that takes around 10 minutes to set up.

You receive notification emails often and would rather send them to Slack instead of having them clutter your inbox.
