From: Ezra Zygmuntowicz Date: 2006-02-17T13:57:48+09:00 Subject: Re: ruby html (or xhtml) forms class... > Jon- Here is a little snippet that might help for sending emails from a ruby script: require 'net/smtp' def send_mail(to, from, subject, body) msgstr = < The following email is about...:

#{ body }
EOM Net::SMTP.start('mail.example.com', 25, 'mail.com', 'username', 'password', :login) do |smtp| smtp.send_message msgstr, "#{from}", "#{to}" end puts "Mail sent." puts "*"*30 puts msgstr end heers- -Ezra Zygmuntowicz WebMaster Yakima Herald-Republic Newspaper http://yakimaherald.com ezra@yakima-herald.com blog: http://brainspl.at