I've viewed previous answers to this problem, but I still can't figure what's wrong with my parameters.
I've modified my gmail account so it allows less secure apps, and unlocked it with a captcha, but it still does not accept my username and password even though I'm sure that they are correct.
Here are my files :
config/environments/production.rb
config.action_mailer.delivery_method = :smtp config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true config.action_mailer.default_url_options = { :host => 'localhost:3000' } config.action_mailer.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :user_name => "[email protected]", :password => "mypassword", :authentication => :login, :enable_starttls_auto => true } config/initializers/smtp_settings.rb
ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "mywebsite.fr", :user_name => "[email protected]", :password => 'myPassword', :authentication => :login, :enable_starttls_auto => true } I guess I've done something wrong, or put something somewhere it doesn't belong. After seeing so many different ways to do it, I'm lost.