RoRアプリケーションにExchange対応メールサーバーをセットアップしました。 、このセットアップは動作しませんRailsのconfig.action_mailer.smtp_settingsとActionMailer :: Base.smtp_settingsの違いは何ですか?
config.action_mailer.smtp_settings = {
:address => 'mail.server.com',
:port => 5870,
:user_name => 'username',
:password => 'password',
:authentication => :login
}
私はNet::SMTPAuthenticationError: 504 Unrecognized authentication type.
を取得し、私はenvironment.rb
にまったく同じ設定を適用した場合しかし、それは完璧に動作します:私はdevelopment.rb
で次の設定を使用
ActionMailer::Base.smtp_settings = {
:address => 'mail.server.com',
:port => 5870,
:user_name => 'username',
:password => 'password',
:authentication => :login
}
どうしてこれなの? config.action_mailer.smtp_settings
は同じ設定をしてはいけませんか?これはバグですか?それには理由がありますか?
は私がtold hereとしてのGmailでそれを試みたが、それは、作品smtp_settingsので、メーラーに影響を持っていませんが、それはすべてのオプション/仕事カウントされないように私には思えます。
開発モードの設定を 'development.rb'に設定しましたが、設定を転送しませんでした。 2つは同じではないようです - これは私の質問についてです。これはバグですか? – andrasf