PrasadG193 / covaccine-notifier

CoWIN Vaccine availability notifier for India
Apache License 2.0
62 stars 28 forks source link

Getting error while sending the email #22

Closed shre2398 closed 3 years ago

shre2398 commented 3 years ago

Got following error :

2021/05/10 04:51:34 Found available slots, sending email
Error: 535 5.7.8 Username and Password not accepted. Learn more at
5.7.8  https://support.google.com/mail/?p=BadCredentials d63sm18304741pjk.10 - gsmtp
Usage:
  covaccine-notifier [FLAGS] [flags]
PrasadG193 commented 3 years ago

@shre2398 do you have 2FA enabled on your gmail account?

shreyas-sriram commented 3 years ago

Enable 2FA and generate an app password. I guess that's the only way. https://myaccount.google.com/apppasswords

shre2398 commented 3 years ago

Yes, I enabled my acc for less secure apps. Its working now. Closing the issue.

PrasadG193 commented 3 years ago

@shre2398 the ideal way is to generate an app passwords (token) instead of allowing less secure apps. Please check - https://support.google.com/accounts/answer/185833?p=InvalidSecondFactor&visit_id=637554658548216477-2576856839&rd=1. We have added note about this in the README