Skip to content

hazzery/batch_emailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daily_email_report

daily_email_report is a simple email automation tool. It is used to send out an email to a mailing list once a day.

Configuration

All configuration of daily_email_report is specified in config.toml. The config file contains the following options:

  • schedule_time - The time of day for the email to be scheduled.

email

  • sender - Who the email is addressed from.
  • mailing_list - Filepath to the mailing list.
  • subject - The subject of the email.
  • email_content - Filepath to a document containing the email's body.
  • attachments - List of filepaths to attach to the email.

server

  • hostname - The hostname of the SMTP server.
  • port_number - The port number the SMTP server is running on.

How to run

To run daily_email_report execute the following command.

python3 -m daily_email_report

This will run in your terminal perpetually, sending the email out daily, until stopped manually.