I verified my domain, I added MX records, the user and password is correct.
mail: {
service: 'Gmail',
transport: 'SMTP',
options: {
host: 'smtp.gmail.com',
port: 465,
secureConnection: true,
auth: {
user: '*******@my-domain.com',
password: '******'
}
}
}
And I keep getting this error: “AuthError: Invalid login - 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 http://support.google.com/mail/bin/answer.py?answer=14257”
What else should I do?
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!
Are you using your domain with Google Apps or is it Google Mail (@gmail.com).
If it is @gmail.com address you will need to make the username the full email address.
If that doesn’t work please post full configuration files (remove any passwords of course!) as it makes it harder to troubleshoot issues like this. Thanks!
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.