Code i used are as follows:
require 'rubygems'
require 'gmailer'
GMailer.connect("mai...@gmail.com","password") do |g|
g.send(
:to => "kar...@symbiountech.com",
:subject => "Mail from application",
:body => "mail from application"
)
end
--
Posted via http://www.ruby-forum.com/.