master
ifiguero 2021-12-29 13:37:33 -03:00
parent c8d164e1f1
commit 4becf0c73c
1 changed files with 2 additions and 2 deletions

View File

@ -43,10 +43,10 @@ async def enviarCorreosDominio(dominioid):
try:
conectado = False
try:
conectado = True
except Exception as e:
smtp = aiosmtplib.SMTP(hostname=str(dbdireccion.ipaddr), port=465, use_tls=True, validate_certs=False, timeout=10)
await smtp.connect()
conectado = True
except Exception as e:
conectado = False
await log.debug('Error al conectar al servidor use_tls: {}'.format(e))