Program written in Python which sends one random quote to think on every day.
Note: Only for linux/ mac. Haven't used in windows
-
Open the info.txt file and replace passkey with appkey from Passkey for sender mail.
-
make the "info.txt" format like (Replace values):
sender = "[email protected]" passkey = "sendermail_passkey" receiver = "[email protected]" receiver = "[email protected]" receiver = "[email protected]"
-
Gemini API:
- Get the api_key from google gemini
Get Your Key From: Link - run Code:
export API_KEY="YOUR_API_KEY" # replace the YOUR_API_KEY with actual key, keeping it in the "..."
- Get the api_key from google gemini
-
Installations:
pip install google.generativeai
-
Automation
crontab -e
append the line
Note: this executes the code if the machine is active at 08:00 so change accordinglyP.S Change the /path/... to full path
0 8 * * * python /path/Daily-Quote-Email-Automation/project.py