Skip to content

Latest commit

 

History

History
39 lines (36 loc) · 1.31 KB

README.md

File metadata and controls

39 lines (36 loc) · 1.31 KB

Daily-Quote-Email-Automation

Program written in Python which sends one random quote to think on every day.

Video Visualization

YouTube

Prerequirements:

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 "..."
  • 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 accordingly

    P.S Change the /path/... to full path

    0 8 * * * python /path/Daily-Quote-Email-Automation/project.py