Created
April 3, 2012 08:10
-
-
Save temochka/2290387 to your computer and use it in GitHub Desktop.
Postmark::HttpClient example
This file contains hidden or 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 'postmark' | |
require 'mail' | |
Postmark.api_key = '76bc4c45-5859-4c34-bab7-XXXX' | |
message = Mail.new do |m| | |
m.from = '[email protected]' | |
m.to = '[email protected]' | |
m.subject = 'Test Message Subject' | |
m.body = 'Test Message Body' | |
end | |
Postmark.send_through_postmark(message) | |
puts Postmark::HttpClient.get("deliverystats").inspect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment