Problems with gmail smtp settings (535-5.7.1 Username and Password not accepted. Learn more at )
Added by John Rose over 11 years ago
Edit:
smtp needs to be activated via google first. fixed.
I've got the following smtp settings in my configuration.yml file:
default:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: "smtp.gmail.com"
port: '587'
domain: "a_custom_domain"
authentication: :plain
user_name: "an_email"
password: "a_password"
When trying to send the test email in the email-settings, I get the following error message:
535-5.7.1 Username and Password not accepted. Learn more at )
I couldnt find anything relevant in my logs. If needed, I can post them.
Does anybody know what the problem could be?
I basically have tried every possible combination in regards to using single quotes, double quotes, or no quotes at all around the settings. When I add tls: true, I get a different error: "SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol".
Anybody have an idea?
Any help appreciated! Thanks in advance!