【发布时间】:2017-06-22 20:36:43
【问题描述】:
我的 development.rb 上有以下 smtp 配置
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "smtp.zoho.com",
:port => 465,
:user_name => "xxx@xxx.com",
:password => "xxxx",
:authentication => :login,
:ssl => true,
:tls => true,
:enable_starttls_auto => true
}
当我通过 rails 控制台发送时我工作,但给出了错误
Net::SMTPAuthenticationError (535-5.7.8 Username and Password not accepted. Learn more at
):
当我通过邮件类发送时。
【问题讨论】:
-
请阅读Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - 总结是这不是解决志愿者的理想方式,并且可能会适得其反。请不要将此添加到您的问题中。
标签: ruby-on-rails-3 actionmailer zoho