Use griddler to receive emails as http post events from Mandrill in Rails
Much of this post is based off of SendGrid’s great tutorial that can be found here. However, I found that some of the contents were outdated. Additionally, I wanted to use mandrill instead of SendGrid.
At times, it may be necessary to receive an email in your rails app as an incoming post event. Fortunately, this problem has been solved and the solution is relatively simple to implement.
Set up Griddler
Add the griddler gem and the mandrill adapter to your gemfile:
Now, we need to add just a little bit of code that griddler needs. First, set up the griddler routes. This is very simple; add
mount_griddler to the top of your
Next we need to set up a few griddler initialize parameters. Create a new file in
config/initializers/griddler.rb and put this code in it:
This code may be somewhat redundant because these are all the default...
Continue reading →