I want to send emails with google but I get the above error, (basic auth.)
the test cmd:
irb(main):003:0> Notify.test_email('bla.bla@gmail.com', 'Test', 'Test msg').deliver_now
Delivered mail 63aeb8e24e40a_913477c3478a@209.mail (401.5ms)
Traceback (most recent call last):
2: from (irb):2
1: from (irb):3:in `rescue in irb_binding'
Net::SMTPAuthenticationError (535-5.7.8 Username and Password not accepted. Learn more at)
If you have 2FA enabled on your account, then you need an app password. Also, you have to ensure that your gmail account has basic auth enabled, since Google started disabling this. I believe also, they will do the same as Microsoft, and disable this possibility altogether, meaning you will then need to use oauth.