测试邮件错误:530 5.7.0 Must issue a STARTTLS command first. e108sm52535614qge.15 - gsmtp
配置信息写在 config/environments/development.rb
config.action_mailer.delivery_method = :sendmail
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: 'smtp.gmail.com',
port: 587,
domain: 'gmail.com',
user_name: 'xxx',
password: 'xxx',
authentication: 'plain',
enable_starttls_auto: true }
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true
config.action_mailer.default_options = {from: '[email protected]'}
这个错误今天 google 很久还是没解决所以来这里请教大家,打扰了!