Guest User

Untitled

a guest
Aug 5th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. require 'rubygems'
  4. require 'postmark'
  5. require 'tmail'
  6.  
  7. Postmark.api_key = "544da1df-952f-45b4-8f50-b104fe7bc46e"
  8.  
  9. message = TMail::Mail.new
  10. message.from = "igor@wildbit.com"
  11. message.to = "Igor <bounceaaaa@bouncegmail.com>, Igor <ibalosh+duosasa@bounce4gmail.com>"
  12. #message.cc = "Igor <ibalosh+unoaass@bouncegmail.com>,Igor <ibalosh+tresasa@bouncegmail.com>"
  13. message.content_type = "text/html"
  14. message.reply_to = "ibalosh+reply@gmail.com"
  15. message.subject = "subject of this email"
  16. message.body = "New message"
  17. message.tag = "Winter"
  18. #message["CUSTOM-HEADER"] = "my custom header value"
  19.  
  20.  
  21. # staging setup start
  22.  
  23. Postmark.host = "staging.newsberry.com"
  24. Postmark.host_path = "staging/email"
  25.  
  26. # staging setup end
  27.  
  28. for i in 1..50 do
  29.  
  30. p Postmark.send_through_postmark(message).body
  31.  
  32. end
Add Comment
Please, Sign In to add comment