This is what I used..

100% working..

@full_message = <<MESSAGE_END
To: t...@gmail.com
Subject: its working!


This is a sample message

MESSAGE_END
  @sent=0
   smtp = Net::SMTP.new('smtp.gmail.com', 25)
   smtp.enable_starttls

 smtp.start('mail.google.com',username, password, :login) do |smtp|
 if @sent==0
  smtp.send_message @full_message, 'from-addr...@example.com',
['t...@email.com']
  @sent=1
 end
end

hope this helped you..
No gem require

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to