Project

plunk_mail

0.0
The project is in a healthy, maintained state
PlunkMail allows Rails applications to use Plunk as an ActionMailer delivery method.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0

Runtime

>= 8.1.3
 Project Readme

PlunkMail

ActionMailer delivery method for sending emails through Plunk (https://www.useplunk.com/).

PlunkMail allows Rails applications to use Plunk (https://www.useplunk.com/) as an ActionMailer delivery method:

config.action_mailer.delivery_method = :plunk

Usage

Configure Plunk in your config/environments/production.rb:

config.action_mailer.delivery_method = :plunk

config.action_mailer.plunk_settings = {
  api_key: ENV["PLUNK_API_KEY"]
}

Use ActionMailer normally:

class UserMailer < ApplicationMailer
  def welcome(user)
    mail(
      to: user.email,
      subject: "Welcome"
    )
  end
end

Send the email:

UserMailer.welcome(user).deliver_now

HTML emails are supported automatically. If an HTML part exists, it will be sent through Plunk.

Installation

Add this line to your application's Gemfile:

gem "plunk_mail"

And then execute:

$ bundle

Or install it yourself as:

$ gem install plunk_mail

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.