Gateway for pushing inbound email from mailgun into intercom.io
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.rvmrc
Gemfile
Gemfile.lock
LICENSE.txt
README.md
app.rb
config.ru
intercom.rb

README.md

Intercom.io Mail Gateway

Take inbound requests from Mailgun and create or update threads in Intercom.io based on those requests.

Installation

Get the app and do this:

gem install bundler
bundle install

Deployment on Heroku

To install into Heroku, do this:

heroku create appname
heroku config:add INTERCOM_APP_ID=app-id
heroku config:add INTERCOM_APP_KEY=app-key
git push heroku master

Setup at mailgun

Set up your domain on Mailgun (along with the MX records Mailgun needs) and create a route that looks like this (replace xyz123 with the app id from intercom.io.

Filter Expression: match_recipient("support@your-app.com")
Actions: forward("http://your-app.heroku.com/xyz123/messages")