亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

從Rails應用發送電子郵件時,Net :: SMTPAuthenticationError

從Rails應用發送電子郵件時,Net :: SMTPAuthenticationError

月關寶盒 2019-11-23 10:38:49
我正在從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 回答

  • 3 回答
  • 0 關注
  • 899 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號