Guest User

Untitled

a guest
Jul 17th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. require 'rubygems'
  4. require 'postmark'
  5. require 'tmail'
  6.  
  7. Postmark.api_key = "90f3e7b2-608d-4062-8e4b-2228ec456226"
  8.  
  9. message = TMail::Mail.new
  10. message.from = "igor@wildbit.com"
  11. message.to = "Igor Balos <qtester8@gmail.com>"
  12. message.subject = "Hi Seldon, try some really long message with some lorem ipsum stuff around here check it out right now ly long message with some lorem ipsum stuff around here check it out right now ly long message with some lorem ipsum stuff around here check it out right now ly long message with some lorem ipsum stuff around here check it out right now"
  13. message.content_type = "text/html"
  14. message.body = "Hello my friend!"
  15.  
  16. p Postmark.send_through_postmark(message).body
Add Comment
Please, Sign In to add comment