Advertisement
Guest User

Untitled

a guest
Jul 30th, 2017
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. require "ruport"
  2.  
  3. Ruport.configure do |conf|
  4. conf.mailer :default,
  5. :host => "mail.adelphia.net", :address => "gregory.t.brown@gmail.com"
  6. end
  7.  
  8. mailer = Ruport::Mailer.new
  9.  
  10. mailer.attach "README"
  11.  
  12. mailer.deliver :to => "gregory.t.brown@gmail.com",
  13. :from => "gregory.t.brown@gmail.com",
  14. :subject => "Hey there",
  15. :text => "This is what you asked for"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement