Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1.  
  2. require 'aws-sdk-ses'
  3.  
  4. ses = Aws::SES::Client.new(:region => 'us-east-1')
  5.  
  6. resp = ses.send_email(
  7. {
  8. :destination => { :to_addresses => [...]},
  9. :message => {
  10. :body => {
  11. :html => {:charset => "utf-8", :data => "Prueba <b>HI</b>"},
  12. :text => {:charset => "utf-8", :data => "Prueba plain"},
  13. },
  14. :subject => {:charset => "utf-8", :data => "Prueba API"},
  15. },
  16. :source => "support@vlex.com",
  17. :configuration_set_name => "EmailMonitoring",
  18. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement