It is a wrapper to use uni_sender gem
Add this line to your application's Gemfile:
gem 'unisender-rails'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install unisender-rails
Make a mailer:
rails g unisender_rails:mailer my_mailer
or
rails generate unisender_rails:mailer my_mailer
Make defaults in your mailer:
class MyMailer < ActionMailer::Base
default :from => "your@email.com"
self.unisender_settings = {:api_key => 'your api here',
:list_id => your users group list id }
def sign_up
mail(:to => 'your@client.com',
:subject => 'Subject')
end
end
Use the mailer:
MyMailer.sign_up.deliver!
- 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