Pepipost
Ruby gem for Pepipost service, wrapper of pepipost sdk: https://github.com/pepipost/pepipost-sdk-ruby
Installation
Add this line to your application's Gemfile:
gem 'pepipost'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pepipost
Usage
require 'pepipost'
data = {
"api_key"=>"yoursecretapikey",
"recipients"=> ["[email protected]","[email protected]"],
"email_details" => {
"fromname" => "sender name",
"subject" => "This is a test email sent usig Pepipost SDK for Ruby",
"from" => "[email protected]",
"content" => "<p>This is a test email sent using Pepipost SDK for Ruby</p>",
}
}
email = Pepipost::Email.new
response = email.send data
print response
Contributing
- Fork it ( https://github.com/[my-github-username]/pepipost/fork )
- 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 a new Pull Request