From: chandan mallik Date: 2013-02-20T23:23:59+09:00 Subject: Could you please post a program to send mail without using Action Mailer require 'net/smtp' def send_email(to,opts={}) opts[:server] ||= 'localhost' opts[:from] ||= 'email@example.com' opts[:from_alias] ||= 'Example Emailer' opts[:subject] ||= "You need to see this" opts[:body] ||= "Important stuff!" msg = < To: <#{to}> Subject: #{opts[:subject]} #{opts[:body]} END_OF_MESSAGE Net::SMTP.start(opts[:server]) do |smtp| smtp.send_message msg, opts[:from], to end end I tried this but it doesn"t work -- Posted via http://www.ruby-forum.com/.