Build Status

SendPulse

Ruby client for SendPulse

Usage

Email Service

  1. Mailing lists

SMTP

Send Email

require 'sendpulse/smtp'

email = {
  html: '<html><body><h1>HTML</h1></body></html>',
  text: 'Text',
  subject: 'Subject',
  from: {
    name: 'Sender Name',
    email: '[email protected]'
  },
  to: [
    {
      name: 'Receiver Name',
      email: '[email protected]'
    }
  ]
}

sendpulse_smtp = SendPulse::Smtp.new(your_client_id, your_client_secret, 'https', nil)
sendpulse_smtp.send_email(email)

Retrieve Emails

require 'sendpulse/smtp'

sendpulse_smtp = SendPulse::Smtp.new(your_client_id, your_client_secret, 'https', nil)
sendpulse_smtp.retrieve_emails

Here is SendPulse API specification.

Contributing

  1. Fork it ( https://github.com/yogahp/SendPulse/fork )
  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 a new Pull Request