I have a contact form and after submitting I am getting a Net::SMTPAuthenticationError 535-5.7.8 Username and Password not accepted
It\'s pointing to th
If you still cannot solve the problem after you turn on the less secure apps.
The other possible reason which might cause this error is you are not using gmail account.
- : user_name => 'example@company.com' , # It can not be used since it is not a gmail address
+ : user_name => 'example@gmail.com' , # since it's a gmail address
Refer to here.
Also, bear in mind that it might take some times to enable the less secure apps. I have to do it several times (before it works, every time I access the link it will shows that it is off) and wait for a while until it really work.