Initial commit. Loads XLSX file from accounting into sqlite database. Sends HTML email. Started adding variable parts to body pulled from database.

This commit is contained in:
Dan Dembinski
2021-03-19 02:22:53 -04:00
commit 12c4722fe9
5 changed files with 281 additions and 0 deletions

20
main.py Normal file
View File

@@ -0,0 +1,20 @@
import sendEmail
import InvoiceDatabase
running = True
while running is True:
print('1. load new excel file\n2. Send Test emails\n3. Send Invoices\n4. Quit')
option = int(input())
if option == 1:
print('Enter invoice number')
invoiceNumber = str(input())
InvoiceDatabase.load_sheet(invoiceNumber)
elif option == 2:
sendEmail.send_email(True,'ALL')
elif option == 3:
sendEmail.send_email()
elif option == 4:
running = False
else:
print('not an option')