Skip to content

a-gracia/plunk_mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages