Skip to content

Instantly share code, notes, and snippets.

@temochka
Created April 3, 2012 08:10
Show Gist options
  • Save temochka/2290387 to your computer and use it in GitHub Desktop.
Save temochka/2290387 to your computer and use it in GitHub Desktop.
Postmark::HttpClient example
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