小编RQ *_*ari的帖子

Ruby on rails电子邮件错误535-5.7.1不接受用户名和密码

我尝试发送电子邮件时遇到错误.我正在尝试从localhost发送电子邮件..动作邮件设置是

ActionMailer::Base.smtp_settings = {

 :enable_starttls_auto => true,

 :address => "smtp.gmail.com",

 :port => 587,

 :domain => "mydomain.com",

 :authentication => :plain,

 :user_name => "do-not-reply@mydomain.com",

  :password => "mypassword"

 }
Run Code Online (Sandbox Code Playgroud)

当我第一次配置它时,电子邮件工作正常.但在发送4或5封电子邮件后,该功能停止工作,并向我显示此错误

Net :: SMTPAuthenticationError ............

535-5.7.1不接受用户名和密码.

哪里可能有问题?

谢谢..

smtp ruby-on-rails

6
推荐指数
1
解决办法
6332
查看次数

标签 统计

ruby-on-rails ×1

smtp ×1