From: Brian Marick Date: 2001-08-20T01:07:03+09:00 Subject: [ruby-talk:19991] Re: SMTP authentication This works with my ISP. Thanks. At 08:42 AM 8/17/01, you wrote: >Brian Marick writes: > > > Net::SMTP#start takes either :cram_md5 or :plain. My ISP doesn't like > > either, and responds with > > > > 500 Command unrecognized: "AUTH CRAM-MD5 > >What happens if you don't specify a user name or password? In the >news2mail gateway, I just do > > def send_mail(head, body) > smtp = Net::SMTP.new > smtp.start(Params::SMTP_SERVER) > smtp.ready(Params::MAIL_SENDER, Params::MAILING_LIST) do |a| > a.write head > a.write "#{Params::LOOP_FLAG}\r\n" > a.write "\r\n" > a.write body > end > end > > >Dave -- Brian Marick, marick@testing.com www.testing.com - Software testing services and resources www.testingcraft.com - Where software testers exchange techniques www.visibleworkings.com - Adequate understanding of system internals