I have set up my windows task scheduler to create a task to run a python script that will send out an email to a few people (including myself).
I added the location the location of my Python in the actions tab in Program/script
C:\Users\User\AppData\Local\Programs\Python\Python37\python.exe
I added my python file as an argument and the path to the file as Start in:
C:\Users\User\Documents\GitHub\automation
However when I run the script (I am testing it by running it every 5 minutes for 15 minutes). Python.exe opens up briefly but the emails in my python script are not sent, which means the script isn't running. I have tested my code several times and know that it works.