No commit activity in last 3 years
No release in over 3 years
Sends mail through the Mandrill API, allowing you to specify options not available when using SMTP, like delivery time.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.5
~> 2.0
 Project Readme

Send mails through Mandrill API with the standard Mail library. This plugin provides a delivery method for Mail that requires no configuration, except for an API key.

Using Mandrill API instead of an SMTP server enables you to configure many more options, such as specifying a delivery time other than now. For more information on all allowed options, please consult the Mandrill gem documentation at https://mandrillapp.com/api/docs/messages.html#method=send.

Setup

If you're using Rails, the plugin will automatically register as a delivery method under :mandrill_api. You just need to specify you want to use it as the default delivery method for action mailer in config/environments/production.rb

config.action_mail.delivery_method = :mandrill_api

By default, the Mandrill API key is loaded from the environment as MANDRILL_API_KEY. If you're using a different mechanism for loading keys, you can simply overwrite the delivery method specification. For instance in config/initializers/setup_mail.rb

ActionMailer::Base.add_delivery_method :mandrill_api, MandrillAPIDeliveryMethod::DeliveryMethod, api_key: "foo123"