[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby Rails Action Mailer not working with Windows XP SMTP server?

shane.sherman

4/12/2005 6:34:00 AM

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)

5 Answers

Lyndon Samson

4/12/2005 5:26:00 PM

0

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 <CR><LF>.<CR><LF>
data

shane.sherman

4/12/2005 7:06:00 PM

0

Thanks, it actually turned out to be something very stupid. I ended up
having to add logging calls to base.rb to track this down but basically
I had "@recients = user.email" instead of "@recipients = user.email",
so it was trying to send the e-mail to no one.

james_b

4/12/2005 7:33:00 PM

0

shane.sherman@gmail.com wrote:
> Thanks, it actually turned out to be something very stupid. I ended up
> having to add logging calls to base.rb to track this down but basically
> I had "@recients = user.email" instead of "@recipients = user.email",
> so it was trying to send the e-mail to no one.


Ah, you forgot the magic module:

include DoWhatIWantNotWhatIType


James


Lyndon Samson

4/13/2005 1:07:00 PM

0

On 4/13/05, shane.sherman@gmail.com <shane.sherman@gmail.com> wrote:
> Thanks, it actually turned out to be something very stupid. I ended up
> having to add logging calls to base.rb to track this down but basically
> I had "@recients = user.email" instead of "@recipients = user.email",
> so it was trying to send the e-mail to no one.
>

Sssh, don't log results like that in an archived mailing list, the
static typers you see, they will smell blood, and they are very
hungry... :-)

>


--
Into RFID? www.rfidnewsupdate.com Simple, fast, news.



Patrick Hurley

4/13/2005 4:18:00 PM

0

On 4/13/05, Lyndon Samson <lyndon.samson@gmail.com> wrote:
> Sssh, don't log results like that in an archived mailing list, the
> static typers you see, they will smell blood, and they are very
> hungry... :-)

So are the unit testers :-)

Patrick