updated the main menu loop so that it's possible to send live emails. Converting the OrderDate variable to a time object it can be formatted in the email body. Switched to send_message to handle Cc and Bcc better. Now sending from Matt's email. Test email set to external address. Matt cannot use mail relay for external mail, waiting for Keystone to advise.

This commit is contained in:
Dan Dembinski
2021-03-23 15:23:52 -04:00
parent 56722752ac
commit bf2d1b3f99
2 changed files with 14 additions and 13 deletions

View File

@@ -11,9 +11,9 @@ while running is True:
invoiceNumber = str(input())
InvoiceDatabase.load_sheet(invoiceNumber)
elif option == 2:
sendEmail.send_email(True,'ALL')
sendEmail.send_email(True, 'ALL')
elif option == 3:
sendEmail.send_email()
sendEmail.send_email(False, 'ALL')
elif option == 4:
running = False
else: