DynectEmail
A Ruby library for interacting with DynECT Email Delivery API.
DynECT Email
DynECT Email API
Installation
From Git
You can check out the latest source from git:
git clone git://github.com/Shopify/dynect_email.git
Usage Example
require 'rubygems'
require 'dynect_email'
DynectEmail.api_key = "your-api-key"
DynectEmail.add_sender("myemail@example.com")
response = DynectEmail.add_account("myemail@example.com", "secretpassword", "Shopify", "1231231231")
DynectEmail.add_sender("myemail@example.com", response['apikey'])
DynectEmail.set_headers({:xheader1 => "X-Sample1", :xheader2 => "X-Sample2"})
DynectEmail.remove_sender("myemail@example.com")
DynectEmail.remove_account("myemail@example.com")
Check out the API docs for more information on what parameters are available.
Contributing
- Fork the official repository.
- Make your changes in a topic branch.
- Send a pull request.
Notes:
- Contributions without tests won't be accepted.
- Please don't update the Gem version.