kartikey54 / VaccineAvailabilityNotifier

534 stars 334 forks source link

Not getting email #27

Open padmajan87 opened 3 years ago

padmajan87 commented 3 years ago

Hi Karthik,

I provided all details in .env file.Not sure about app password. Just copied the string provided in sample.

But I didnt get any mail. Could you please let me know if any particular password should be provided.

Regards, Padmajan V

sid8840 commented 3 years ago

set 2-factor authorization in Gmail after that go to security-app password-device=windows computer and app=mail generate password 16 digit password should be generated copy that password and paste the in-app password in the .env file you will get mail.

sid8840 commented 3 years ago

set 2-factor authorization in Gmail after that go to security-app password-device=windows computer and app=mail generate password 16 digit password should be generated copy that password and paste the in-app password in the .env file you will get mail.

my watching is enabled but still i am not getting any mail

go through https://github.com/kartikey54/VaccineAvailabilityNotifier/issues you will find what you need.

varunn12 commented 3 years ago

I did the whole set up but didn't receive any email

varunn12 commented 3 years ago

Check Line 56 of vaccineNotifier.js Email is triggered only when slots are available. if(validSlots.length > 0) { notifyMe(validSlots); }

Add Notify me in the try catch of main function in VaccineNotifier.js

  try {
        notifyMe('{}') // Add this line to check if your configuration is correct. Email should start going
        cron.schedule('* * * * *', async () => {
             await checkAvailability();
        });
    } 
nomulas commented 3 years ago

I inserted a new line at 23 and added this line notifyMe('{}') in vaccineNotifier.js and started the application again and got a dummy email. thanks @varunn12

tejas-2232 commented 3 years ago

Check Line 56 of vaccineNotifier.js Email is triggered only when slots are available. if(validSlots.length > 0) { notifyMe(validSlots); }

Add Notify me in the try catch of main function in VaccineNotifier.js

try {
      notifyMe('{}') // Add this line to check if your configuration is correct. Email should start going
      cron.schedule('* * * * *', async () => {
           await checkAvailability();
      });
  } 

This works but sends dump mail.

I think the ideal json that we want should be passed in notifyMe( here )