-1

尝试使用 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 
4

1 回答 1

0

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

于 2010-06-02T13:34:18.720 回答