Created
September 5, 2013 03:54
-
-
Save fukajun/6445896 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mandrill' | |
m = Mandrill::API.new | |
message = { | |
:subject=> "Hello from the Mandrill API", | |
:from_name=> "Your name", | |
:text=>"Hi message, how are you?", | |
:to=>[ | |
{ | |
:email=> "[email protected]", | |
:name=> "fukajun Test user" | |
} | |
], | |
:html=>"<html><h1>Hi <strong>message</strong>, how are you?</h1><a href='http://fukajun.org/'>click me</a> </html>", | |
:from_email=>"[email protected]" | |
} | |
sending = m.messages.send message | |
puts sending |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment