Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mail = Mail.new do
- from 'me@test.lindsaar.net'
- to 'you@test.lindsaar.net'
- subject 'Here is the image you wanted'
- body File.read('body.txt')
- add_file :filename => 'somefile.png', :content => File.read('/somefile.png')
- end
- mail.deliver!
Add Comment
Please, Sign In to add comment