From 0a98338fadc1da59187f0b7565bcb12fde845fbd Mon Sep 17 00:00:00 2001 From: El Mau Date: Sat, 22 Jan 2022 20:24:06 -0600 Subject: [PATCH] Fix - Issue #40 --- source/app/models/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/app/models/main.py b/source/app/models/main.py index f9932cb..1a4c8f4 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -7636,10 +7636,12 @@ class CfdiPagos(BaseModel): files = (self.get_file_pdf(id), self.get_file_xml(id)) fields = util.make_fields(obj.xml) + starttls = bool(int(values.get('correo_starttls', '0'))) server = { 'servidor': values['correo_servidor'], 'puerto': values['correo_puerto'], 'ssl': bool(int(values['correo_ssl'])), + 'starttls': starttls, 'usuario': values['correo_usuario'], 'contra': utils.decrypt(contra, rfc), } @@ -8888,10 +8890,12 @@ class CfdiNomina(BaseModel): ) message = subject = f"Enviamos tu recibo de nĂ³mina" + starttls = bool(int(values.get('correo_starttls', '0'))) server = { 'server': config['correo_servidor'], 'port': config['correo_puerto'], 'ssl': utils.to_bool(config['correo_ssl']), + 'starttls': starttls, 'user': config['correo_usuario'], 'pass': utils.decrypt(contra, emisor.rfc), }