By poramo
How to configure: rails 4, gmail, godaddy ? Im using this configuration for my own email/domain: contact@mydomain.com
smtp:
address: smtp.gmail.com
port: 587
domain: mydomain.com
user_name: contact
password: password
authentication: plain
enable_starttls_auto: true
I receive 2 kind of errors:
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It sounds like you are encountering a Google security feature based on the request that you log in with a web browser. Logging into your google account from a browser on your droplet looks like it would resolve that but since most people do not have a need for a graphical environment on their server and text based browsers can be finicky with newer technologies I would recommend setting up a free account somewhere like sendgrid that would allow you to set up SMTP access easily from your server using the method you already are, still use the sender/reply-to address you want and avoid the extra steps.
For the STMP error, Google prefers you to use OAuth for authenticating, otherwise you might get errors like this when connecting. You can try a few different things to get around this:
Hope this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.