This executable does:
- open a template time sheet
- update the details to match your name and date
- save a copy of the time sheet with the updated details.
- attach the updated time sheet to an email and send it
- Clone this repo.
- Create a file called
.config
in the repository root directory. - Set up your details in the
.config
file:
{
"employee_name": "The-Best-Employee",
"microsoft_account_email": "TYPE_HERE_YOUR_MICROSOFT_ACCOUNT_EMAIL",
"microsoft_account_pass": "TYPE_HERE_YOUR_MICROSOFT_ACCOUNT_PASSWORD",
"email_to": "[email protected]",
"email_subject": "Weekly time recording",
"email_body": "<p>Hi Joe!<br>Here my records <b>:)</b></p>",
"xlsx_template_path": "C:/Users/The-Best-Employee/template-time-sheet.xlsx",
"delete_temp": "True"
}
- Run
timesheet.exe
.
employee_name
: your name as shown in the time sheet template.microsoft_account_email
: your Microsoft Account email.microsoft_account_pass
: your Microsoft Account password.email_to
: person to receive your email.email_subject
: email subject.email_body
: email body, interpreted as HTML.xlsx_template_path
: absolute path to the time sheet template.delete_temp
: set this value toFalse
to remove temporary files. Otherwise, any temporary files will be deleted.
This file will only be locally for safety. DO NEVER make it public or commit it (it's listed under .gitignore
on purpose).
- Support HTML in the email body.
- Remove unnecessary dependencies to reduce the binary size.