M<img src=“
” height=“22” />ilPlugger¶ ↑
MailPlugger helps you to use different mail providers' SMTP and API. You can use any SMTPs and APIs which one would like to use. It allows you to send different emails with different SMTPs and APIs. Also it can help to move between providers, load balacing or cost management.
Installation¶ ↑
Add this line to your application's Gemfile:
gem 'mail_plugger'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install mail_plugger
Usage¶ ↑
-
How to combine SMTP and API delivery systems in Ruby on Rails
-
How to add API specific options to the mailer method in Ruby on Rails
-
How to use API delivery system that add attachments to the mailer method in Ruby on Rails
-
How to use one API delivery system with more send methods in Ruby on Rails
F<img src=“
” height=“22” />kePlugger¶ ↑
FakePlugger is a delivery method to mock MailPlugger. It is working similarly like MailPlugger, but it won't send any emails (but if we would like it is possible, just we should do manually). Also it can write out debug informations or we can manipulate the response with it. Another option that we can use {MailGrabber}[https://github.com/MailToolbox/mail_grabber] web interface if the delivery method is :fake_plugger
.
Usage¶ ↑
Development¶ ↑
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
To release a new version:
-
Update CHANGELOG.md
-
Update the version number in
version.rb
manually or usegem-release
gem and rungem bump -v major|minor|patch|rc|beta
. -
Build gem with
bundle exec rake build
. -
Run
bundle install
andbundle exec appraisal install
to update gemfiles and commit the changes. -
Run
bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the.gem
file to rubygems.org.
Contributing¶ ↑
Bug reports and pull requests are welcome. Please read CONTRIBUTING.md if you would like to contribute to this project.
Inspiration¶ ↑
-
and other solutions regarding in this topic
License¶ ↑
The gem is available as open source under the terms of the MIT License.