Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Mailrelay gem for Ruby and Ruby on Rails
Ruby
branch: master

Fixing dependency for activesupport.

latest commit ed7a50d547
Fernando Morgenstern authored
Failed to load latest commit information.
examples
lib
README.md Update API documentation url.
mailrelay.gemspec Fixing dependency for activesupport.

README.md

Mailrelay

Mailrelay gem is a simple Ruby wrapper for Mailrelay.com API. You can do a large number of operations like managing subscribers and campaigns, sending your newsletters, getting your stats data, etc.

Installation

Simply run:

gem install mailrelay

Examples

You can check the API documentation to view a list of all available functions. All functions can be called with this wrapper.

If you want to create a subscriber, simply use:

require 'rubygems'
require 'mailrelay'

# Set your account hostname and api key here
hostname = 'your_account_hostname'
api_key = 'your_api_key'

api = Mailrelay::API.new hostname, api_key

api.addSubscriber :email => 'user@example.org', :name => 'Name'
Something went wrong with that request. Please try again.