From ae4d6c1a1fea763f32c0a2c029fa48cb35ad0139 Mon Sep 17 00:00:00 2001 From: Dan Dembinski Date: Wed, 24 Mar 2021 14:26:46 -0400 Subject: [PATCH] Added Printing Concepts relay as the smtp server and switched my cc email back to gll domain. All works now --- sendEmail.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sendEmail.py b/sendEmail.py index 1cad2c9..8250d4e 100644 --- a/sendEmail.py +++ b/sendEmail.py @@ -9,8 +9,9 @@ import InvoiceDatabase def send_email(test, record): port = 25 - smtp_server = 'gll-com.mail.protection.outlook.com' + # smtp_server = 'gll-com.mail.protection.outlook.com' # smtp_server = 'mail.keystonerelay.com' + smtp_server = 'printingconcepts-com.mail.protection.outlook.com' orders = InvoiceDatabase.just_work() for each in orders: @@ -177,6 +178,7 @@ def send_email(test, record): msg['Subject'] = 'INVOICE ' + InvoiceNumber if test is True: msg['To'] = 'dan.dembinski@gmail.com' + msg['Cc'] = 'ddembinski@gll.com' else: msg['To'] = InvoiceEmailAddress msg['Cc'] = 'Carrie Higgins '