I’m working with a company that uses gmail. Is there anyway I can send an automated email two or three times a day with reminders, using python? From what I’ve googled or seen, I’ve only been able to find how to email using python in general. Anyway to automate it?
Thanks!
If I understand your question correctly, it sounds like the only piece you’re missing is something to automatically run your Python ever so often.
I’d recommend crontab. Through a terminal, you can type:
crontab -e. From there, add an entry similar to the following:0 0,4,8,12,16,20 * * * python /absolute/path/to/my/file.pythe “0,4,8,12,16,20” piece means it’ll run the python script at midnight, 4am, 8am, 12pm, 4pm, and 8pm every day.