GithubHelp home page GithubHelp logo

azendoo / griddler-mailgun Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mathieulaporte/griddler-mailgun

0.0 2.0 0.0 35 KB

Mailgun adapter for the griddler gem.

License: MIT License

Ruby 100.00%

griddler-mailgun's Introduction

Griddler::Mailgun

Code Climate

This was extracted from the griddler gem and is used to parse emails forwarded to your application from mailgun.

IMPORTANT: Please use version 1.0.1 or higher. There was a bug in version 1.0.0.

Installation

Add this line to your application's Gemfile:

gem 'griddler', '~> 1.0.0'
gem 'griddler-mailgun', '~> 1.0.1'

Then execute:

bundle install

Usage

Griddler comes with a route that, when used, handles the params passed to your application and then sends a Griddler::Email to EmailProcessor#process. Read a blog post about it on the Thoughtbot blog.

Getting mailgun to POST to your application

Mailgun uses routes to filter incoming emails and forward them to your app. A route is made up of a filter and an action. The filter matches emails based on its properties and the action determines what happens to the matched email.

For example, to forward any email sent to an example.net address to http://example.com/email_processor the following route would be used:

Filter Expression:

match_recipient(".*@example.net")

Action:

forward("http://example.com/email_processor")

More Information

Credits

Griddler::Mailgun was extracted from Griddler by Brad Pauly.

Griddler was written by Caleb Thompson and Joel Oliveira.

License

Griddler::Mailgun is Copyright © 2014 Brad Pauly. It is free software, and may be redistributed under the terms specified in the LICENSE file.

griddler-mailgun's People

Contributors

akalra avatar bradpauly avatar calebhearth avatar mathieulaporte avatar wingice avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.