From: Derek Smith Date: 2010-01-01T12:43:50+09:00 Subject: Re: send emails Ruby Newbee wrote: > Hello, > > I need a module for sending emails. > Could you show me where I can find it and what's the syntax? > Thanks. Have fun! require 'net/smtp' Net::SMTP.start('smtp.example.com', 25) do |smtp| smtp.open_message_stream('from_addr', [to_addr]) do |f| f.puts 'From: shabbir@g4ef.com' f.puts 'To: pradeep@g4ef.com' f.puts 'Subject: test message' f.puts 'This is a test message.' end end Derek -- Posted via http://www.ruby-forum.com/.