Fix - al enviar correo
This commit is contained in:
parent
fe949de513
commit
6125623c5f
|
@ -263,7 +263,9 @@ class SendMail(object):
|
|||
|
||||
def _login(self):
|
||||
try:
|
||||
if self._config['ssl'] and 'gmail' or 'outlook' in self._config['servidor']:
|
||||
if self._config['ssl'] and (
|
||||
'gmail' in self._config['servidor'] or
|
||||
'outlook' in self._config['servidor']):
|
||||
self._server = smtplib.SMTP(
|
||||
self._config['servidor'],
|
||||
self._config['puerto'], timeout=10)
|
||||
|
|
|
@ -20,7 +20,7 @@ import zipfile
|
|||
|
||||
from io import BytesIO
|
||||
from pathlib import Path
|
||||
from smtplib import SMTPException, SMTPAuthenticationError
|
||||
# ~ from smtplib import SMTPException, SMTPAuthenticationError
|
||||
from xml.etree import ElementTree as ET
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue