SendPulse
Ruby client for SendPulse
Usage
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
- Fork it ( https://github.com/yogahp/SendPulse/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