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:
20
main.py
Normal file
20
main.py
Normal 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')
|
||||
Reference in New Issue
Block a user