我已经使用邮件客户端测试了该帐户,并且看起来一切正常,但是当我尝试通过Rails 4应用发送时,出现错误消息:
Net :: SMTPAuthenticationError(535 5.7.3身份验证失败[PN1PR01CA0089.INDPRD01.PROD.OUTLOOK.COM])
config:
config.action_mailer.smtp_settings = {
address: "smtp.live.com",
port: 587,
domain: Rails.application.secrets.domain_name,
authentication: "login",
enable_starttls_auto: true,
#tls: true,
user_name: Rails.application.secrets.email_provider_username,
password: Rails.application.secrets.email_provider_password,
openssl_verify_mode: 'none'}