我正在從Rails應用程序發送電子郵件。它在開發環境上運行良好,但在暫存上失敗。我收到以下錯誤:Net::SMTPAuthenticationError (534-5.7.14 <https://accounts.google.com/ContinueSignIn?plt=AKgnsbtdF0yjrQccTO2D_6)請注意,我沒有暫存域名。這是我在staging.rb中的設置config.action_mailer.delivery_method = :smtpconfig.action_mailer.default_url_options = { :host => "my.ip.addr.here:80" }config.action_mailer.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => 'my.ip.addr.here:80' :user_name => "[email protected]", :password => "my_email_password", :authentication => 'login'}請幫忙。編輯。添加:tls => true選項后,我得到OpenSSL::SSL::SSLError (Unrecognized SSL message, plaintext connection?)然后我將端口更改為25,現在我得到了(延遲30秒):Timeout::Error (execution expired)
- 3 回答
- 0 關注
- 899 瀏覽
添加回答
舉報
0/150
提交
取消