Skip to content
This repository
Donald Ball October 25, 2010
file 14 lines (12 sloc) 0.426 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
require 'rubygems'
require 'mail'
require 'ruby-debug'

smtp = { :address => 'mail.fiendz.org', :port => 587, :domain => 'fiendz.org', :user_name => 'test@fiendz.org', :password => 'foobar', :enable_starttls_auto => true, :openssl_verify_mode => 'none' }
Mail.defaults { delivery_method :smtp, smtp }
mail = Mail.new do
  from 'test@fiendz.org'
  to 'donald.ball@gmail.com'
  subject 'subject'
  body 'body'
end
mail.deliver!
Something went wrong with that request. Please try again.