This is what I used..

100% working..

@full_message = <<MESSAGE_END
To: [email protected]
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, '[email protected]',
['[email protected]']
  @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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to