3

I'm using rails and mailer. Whenever user signs up, the user gets an email confirmation. In the gmail account (business) I've set up 2-step authentication and an app password. The email gets sent well in production (tested by me only) with heroku.

BUT every few weeks the app crashes, because the app password in gmail had somehow mysteriously been deleted. I have to create a new one every time.

I've searched around but I don't see instances where this happens with app password... Do you have any thoughts?

superbot
  • 401
  • 3
  • 19
  • I should note here for anyone not familiar with gmail setting -- if you enable 2-step authentication, the option to allow less secure apps disappears – superbot Aug 18 '21 at 01:46
  • did you find anything out about this? I had a critical app password vanish causing emails to not be sent. – gymbrall Jul 04 '22 at 02:20

2 Answers2

0

Once two-factor authentication is enabled, create a application password for heroku and use that password in the service configuration

0

Changing your account password will revoke all of your app passwords.

https://support.google.com/mail/thread/42383135?hl=en&msgid=42546167

Sean
  • 1
  • 2