Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Gateway for pushing inbound email from mailgun into intercom.io

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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")
Something went wrong with that request. Please try again.