rails 2.3.4中的Net :: SMTPFatalError

时间:2010-06-02 12:18:11

标签: ruby-on-rails actionmailer

使用action_mailer_tls插件尝试使用rails 2.3.4(它在2.3.2上运行)发送电子邮件时出现以下错误:

Net::SMTPFatalError in UsersController#create

555 5.5.2 Syntax error. w3sm66205164ybi.9


C:/Program Files (x86)/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/smtp.rb:930:in `check_response'
C:/Program Files (x86)/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/smtp.rb:899:in `getok'
C:/Program Files (x86)/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/smtp.rb:828:in `mailfrom'
C:/Program Files (x86)/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/smtp.rb:653:in `send_message'
C:/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:683:in `perform_delivery_smtp'
C:/Program Files (x86)/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/net/smtp.rb:526:in `start'
C:/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:681:in `perform_delivery_smtp'
C:/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:523:in `deliver!'
C:/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:395:in `method_missing'
D:/Proyectos/Cursometro/www/app/models/user_observer.rb:3:in `after_create'
D:/Proyectos/Cursometro/www/app/controllers/users_controller.rb:221:in `create_new_user'
D:/Proyectos/Cursometro/www/app/controllers/users_controller.rb:101:in `create'

我在action_mailer(smtp_tls.rb文件)中更改了以下行后发生了这种情况:

 #check_auth_args user, secret, authtype if user or secret
    check_auth_args user, secret if user or secret # Ruby 1.8.7 FIX 

1 个答案:

答案 0 :(得分:0)

我想这是由于我的宝石环境之间的冲突而发生的。我调整了一些东西,现在已经解决了。