重新发送确认错误
Resend confirmation error
我在 Gmail 上重新发送确认邮件时出错:
Net::SMTPAuthenticationError Devise::ConfirmationsController#create
534-5.7.14
def check_auth_response(res)
unless res.success?
raise SMTPAuthenticationError, res.message
end
end
/development.rb
ActionMailer::Base.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "localhost:3000",
user_name: '...@gmail.com',
password: '...',
authentication: "login",
:enable_starttls_auto => true
}
仔细检查您的用户名和密码。将身份验证设置为 "plain"。或者,您可能必须在以下 link 上绕过 Google 的安全验证码(如回答 here): http://www.google.com/accounts/DisplayUnlockCaptcha
ActionMailer::Base.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
user_name: 'username@gmail.com',
password: 'password',
authentication: "plain",
enable_starttls_auto: true
}
我在 Gmail 上重新发送确认邮件时出错:
Net::SMTPAuthenticationError Devise::ConfirmationsController#create 534-5.7.14
def check_auth_response(res)
unless res.success?
raise SMTPAuthenticationError, res.message
end
end
/development.rb
ActionMailer::Base.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "localhost:3000",
user_name: '...@gmail.com',
password: '...',
authentication: "login",
:enable_starttls_auto => true
}
仔细检查您的用户名和密码。将身份验证设置为 "plain"。或者,您可能必须在以下 link 上绕过 Google 的安全验证码(如回答 here): http://www.google.com/accounts/DisplayUnlockCaptcha
ActionMailer::Base.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
user_name: 'username@gmail.com',
password: 'password',
authentication: "plain",
enable_starttls_auto: true
}