From: Lyndon Samson Date: 2005-04-13T02:26:00+09:00 Subject: Re: Ruby Rails Action Mailer not working with Windows XP SMTP server? Have you tried telneting to the server telnet localhost 25 220 localhost ESMTP Postfix MAIL FROM:samson@ozemail.com.au 250 Ok RCPT TO:samsonl 250 Ok DATA 354 End data with . data . 250 Ok: queued as 2645C7CC002 quit If that works, try wrapping the same in ruby using sockets. If that still works then you need a proxy to determine what is being sent to the server from ruby. cheers lyndon On Apr 12, 2005 4:34 PM, shane.sherman@gmail.com wrote: > I have been trying to get basic e-mail sending working with Action > Mailer for 2 days now and I've pretty much exhausted every possible > solution I can think of. > > I am using Windows XP Professional with the Default SMTP Virtual Server > setup to accecpt Anonymous connections. The domain set in the SMTP > settings is my machine name which I've specified in my Environment.rb > as > > ActionMailer::Base.server_settings = { > :domain => 'machinename' > } > > It's running on localhost, with no password, and It works fine with > other languages/framewords like C#/.NET. > > Has anyone got this working, and if so how? What are your settings? Any > ideas on what I'm doing wrong? > > The error I'm getting is : > > Net::SMTPSyntaxError (501 5.5.4 Invalid Address > ): > g:/ruby/lib/ruby/1.8/net/smtp.rb:680:in `check_response' > g:/ruby/lib/ruby/1.8/net/smtp.rb:653:in `getok' > g:/ruby/lib/ruby/1.8/net/smtp.rb:635:in `rcptto' > g:/ruby/lib/ruby/1.8/net/smtp.rb:546:in `send0' > g:/ruby/lib/ruby/1.8/net/smtp.rb:545:in `each' > g:/ruby/lib/ruby/1.8/net/smtp.rb:545:in `send0' > g:/ruby/lib/ruby/1.8/net/smtp.rb:472:in `sendmail' > > g:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.8.1/lib/action_mailer/base.rb:162:in > `perform_delivery_smtp' > > g:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.8.1/lib/action_mailer/base.rb:160:in > `start' > g:/ruby/lib/ruby/1.8/net/smtp.rb:316:in `start' > > g:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.8.1/lib/action_mailer/base.rb:160:in > `perform_delivery_smtp' > > g:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.8.1/lib/action_mailer/base.rb:145:in > `send' > > g:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.8.1/lib/action_mailer/base.rb:145:in > `deliver' > > g:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.8.1/lib/action_mailer/base.rb:113:in > `method_missing' > app/controllers/account_controller.rb:30:in `signup' > > g:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/base.rb:700:in > `send' > > g:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/base.rb:700:in > `perform_action_without_filters' > > g:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/filters.rb:294:in > `perform_action_without_benchmark' > > g:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/benchmarking.rb:30:in > `perform_action_without_rescue' > > g:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/benchmarking.rb:30:in > `measure' > > g:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/benchmarking.rb:30:in > `perform_action_without_rescue' > > g:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/rescue.rb:79:in > `perform_action' > > g:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/base.rb:330:in > `send' > > g:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/base.rb:330:in > `process' > > g:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/base.rb:273:in > `process' > g:/ruby/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/dispatcher.rb:32:in > `dispatch' > F:/Development/Ruby/blindbot/public/dispatch.rb:10 > > g:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:187:in > `load' > > g:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:187:in > `load' > > g:/ruby/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/webrick_server.rb:84:in > `handle_dispatch' > > g:/ruby/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/webrick_server.rb:35:in > `do_POST' > g:/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in > `__send__' > g:/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in > `service' > g:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > g:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > g:/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread' > g:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start' > g:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread' > g:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start' > g:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each' > g:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start' > g:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start' > g:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start' > > g:/ruby/lib/ruby/gems/1.8/gems/rails-0.11.1/lib/webrick_server.rb:21:in > `dispatch' > script/server:48 > > Rendering > g:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/templates/rescues/layout.rhtml > (500 Internal Error) > > -- Into RFID? www.rfidnewsupdate.com Simple, fast, news.