🏴☠ A hack to read emails on a Slack channel while staying in free plan
If your team works on a Slack workspace, and the team has to maintain one, or a bunch of different email ids and wish to be notified of every email instantly on Slack; there is a hack for you and an alternative to Send emails to Slack which work only with Free, Standard, Plus, and Enterprise Grid plans.
After setting up your Slackbot chat as a forward emailing address of your email account (Steps explained below) this bot watches for messages in the Slackbot chat and whenever a message arrives with an attached email, it forwards it to a channel as a message.
forwarding email. If you send any email to this address, it will appear as a file in your Direct messages channel with Slackbot.Preferences (top right corner icon)Messages & mediaBring emails into Slack. It will generate an email address for you. Any email sent to this address will appear in your Direct messages with Slackbot.Gmail Bot or something else Outlook BotEvent Subscriptions in the sidebar
Request URL, add your web server script url https://domain.tld/email-to-slack.phpmessage.im in Subscribe to events on behalf of usersOAuth & Permissions
Scopes, part Bot Token Scopes add these OAuth Scope:
files:readim:historyincoming-webhookAPP_ID=A12ED963ZQS INCOMING_WEBHOOK_URL=https://hooks.slack.com/services/T12DRSFGE/C02EV6KLCCY/neWIoLN0nXQ0obVgHlxXmYgc TEAM_ID=T12DRSFGE USlackbot_CHANNEL=D050CBER9 VERIFICATION_TOKEN=ZZHla9Kj8l4L28PceIoDB3IXRefer to SLACK API FAQ for more help.
A bit more?
Basic Information, you can change Display Information to get beautiful notifications
| Config Variable | Description |
|---|---|
APP_ID |
You get this when you create the app |
INCOMING_WEBHOOK_URL |
You get this when you install the app on one channel |
TEAM_ID |
ID of your slack workspace. See this |
USLACKBOT_CHANNEL |
The ID of the direct messaging channel between you and @slackbot |
VERIFICATION_TOKEN |
You get this when you create the app |
Note that the Slack IDs (for a channel, users, files) are alphanumeric uppercase string of 9 characters.
Notes:
This project is licensed under the MIT License - see the LICENSE details.
This was designed with the inspiration from this fine folks: