From: tsumeruby@... Date: 2005-12-29T20:01:00+09:00 Subject: Re: Need Help Using Net::SMTP On Thursday 29 December 2005 06:59 pm, Dan Diebolt wrote: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/167128 The "250 Mail queued for delivery.\n" message is from the mail server. You may be getting caught by a spam filter. The email is supposed to be received. Tsume > I am trying to send email from my comcast email account (say > me@comcast.net) to my yahoo email accout (say me@yahoo.com) from a ruby > script using net/smtp: > > require 'net/smtp' > Net::SMTP.start("smtp.comcast.net", 25,"localhost","user","pass") do |smtp| > smtp.send_message "hello","me@comcast.net","me@yahoo.com" > end > > After trying the above ruby in irb I get the following message with no > email delivered: > > => "250 Mail queued for delivery.\n" > > I don't understand how the third argument to Net::SMTP.start should be > specified; its called "helo" and documentation says it defaults to > 'localhost.localdomain'. I would appreciate it if anyone could point out > what I am doing wrong. > > I am pretty sure I have the smtp, pop3 and ports identified correctly as > I can send email using the command line utility postie > (http://www.infradig.com/postie/index.shtml): > > postie -esmtp -host:smtp.comcast.net -to:me@yahoo.com > -from:me@comcast.net -s:subject -msg:hello -user:user -pass:pass > > #Incoming mail (POP3): mail.comcast.net > #Incoming mail (POP3): 110 > #Outgoing mail (SMTP): smtp.comcast.net > #Outgoing mail (SMTP): port is set to 25