Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- require 'rubygems'
- require 'postmark'
- require 'tmail'
- Postmark.api_key = "544da1df-952f-45b4-8f50-b104fe7bc46e"
- message = TMail::Mail.new
- message.from = "igor@wildbit.com"
- message.to = "Igor <bounceaaaa@bouncegmail.com>, Igor <ibalosh+duosasa@bounce4gmail.com>"
- #message.cc = "Igor <ibalosh+unoaass@bouncegmail.com>,Igor <ibalosh+tresasa@bouncegmail.com>"
- message.content_type = "text/html"
- message.reply_to = "ibalosh+reply@gmail.com"
- message.subject = "subject of this email"
- message.body = "New message"
- message.tag = "Winter"
- #message["CUSTOM-HEADER"] = "my custom header value"
- # staging setup start
- Postmark.host = "staging.newsberry.com"
- Postmark.host_path = "staging/email"
- # staging setup end
- for i in 1..50 do
- p Postmark.send_through_postmark(message).body
- end
Add Comment
Please, Sign In to add comment