Added Printing Concepts relay as the smtp server and switched my cc email back to gll domain. All works now
This commit is contained in:
@@ -9,8 +9,9 @@ import InvoiceDatabase
|
|||||||
def send_email(test, record):
|
def send_email(test, record):
|
||||||
|
|
||||||
port = 25
|
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 = 'mail.keystonerelay.com'
|
||||||
|
smtp_server = 'printingconcepts-com.mail.protection.outlook.com'
|
||||||
|
|
||||||
orders = InvoiceDatabase.just_work()
|
orders = InvoiceDatabase.just_work()
|
||||||
for each in orders:
|
for each in orders:
|
||||||
@@ -177,6 +178,7 @@ def send_email(test, record):
|
|||||||
msg['Subject'] = 'INVOICE ' + InvoiceNumber
|
msg['Subject'] = 'INVOICE ' + InvoiceNumber
|
||||||
if test is True:
|
if test is True:
|
||||||
msg['To'] = 'dan.dembinski@gmail.com'
|
msg['To'] = 'dan.dembinski@gmail.com'
|
||||||
|
msg['Cc'] = 'ddembinski@gll.com'
|
||||||
else:
|
else:
|
||||||
msg['To'] = InvoiceEmailAddress
|
msg['To'] = InvoiceEmailAddress
|
||||||
msg['Cc'] = 'Carrie Higgins <chiggins@gll.com>'
|
msg['Cc'] = 'Carrie Higgins <chiggins@gll.com>'
|
||||||
|
|||||||
Reference in New Issue
Block a user