8000 GitHub - vdv/unisender-rails: A wrapper for uni_sender gem to use it as an ActionMailer
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

vdv/unisender-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unisender::Rails

It is a wrapper to use uni_sender gem

Installation

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

Usage

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!

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A wrapper for uni_sender gem to use it as an ActionMailer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0