On Thu, Dec 31, 2009 at 9:43 PM, Derek Smith
<derekbellnersmith / yahoo.com> wrote:
> 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'
> =A0Net::SMTP.start('smtp.example.com', 25) do |smtp|
> =A0 =A0smtp.open_message_stream('from_addr', [to_addr]) do |f|
> =A0 =A0 =A0f.puts 'From: shabbir / g4ef.com'
> =A0 =A0 =A0f.puts 'To: pradeep / g4ef.com'
> =A0 =A0 =A0f.puts 'Subject: test message'
> =A0 =A0 =A0f.puts 'This is a test message.'
> =A0 =A0end
> =A0end
>
> Derek


Take a look at tmail also.

It goes without saying that you should follow the law. In the United
States ( I don't know about other countries' laws)
We have the CAN SPAM act.
Make sure you follow it, because people who spam should be
#{insert_your_patent_of_punishment}

Andrew McElroy
> --
> Posted via http://www.ruby-forum.com/.
>
>