Skip to content

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

Notifications You must be signed in to change notification settings

KenniBlank/Daily-Quote-Email-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages