Addons Gem
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'addons'
And then execute:
$ bundle
Or install it yourself as:
$ gem install addons
Recipe Runner
To run all recipes related to your app, run this in your Terminal:
rake addons:recipe:run[all]
Recipes
Mailgun SMTP
Run the recipe
rake addons:recipe:run[mailgun_smtp]
Copy and paste this to the rails console to test your email settings
class TestMailer < ActionMailer::Base
default :from => "[email protected]"
def welcome_email
mail(:to => "[email protected]", :subject => "Test Mailgun SMTP mail", :body => "Test Mailgun SMTP mail body")
end
end
TestMailer.welcome_email.deliver
Mailgun HTTP
Run the recipe
rake addons:recipe:run[mailgun_http]
Copy and paste this to the rails console to test your email settings
email = {
to: "[email protected]",
from: "[email protected]",
subject: "Test Mailgun HTTP mail",
body: "Test Mailgun HTTP mail body"
}
Addons::Mailgun.(email)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request