0
config.action_mailer.default_url_options = { :host => 'localhost'} 
  ActionMailer::Base.smtp_settings = {
    :user_name => 'xyz@gmail.com',
    :password => 'nico6655',
    :domain => 'gmail.com',
    :address => 'smtp.gmail.com',
    :port => 587,
    :authentication => :plain, 
    :enable_starttls_auto => true,
    :openssl_verify_mode  => 'none'

  }

How to fix the 'SMTP could not authenticate' error?

  • Does this answer your question? [Rails 4, how to correctly configure smtp settings (gmail)](https://stackoverflow.com/q/25872389/895789) – Alter Lagos Sep 23 '22 at 01:52

0 Answers0