tls test
parent
c8d164e1f1
commit
4becf0c73c
|
@ -43,10 +43,10 @@ async def enviarCorreosDominio(dominioid):
|
||||||
try:
|
try:
|
||||||
conectado = False
|
conectado = False
|
||||||
try:
|
try:
|
||||||
conectado = True
|
|
||||||
except Exception as e:
|
|
||||||
smtp = aiosmtplib.SMTP(hostname=str(dbdireccion.ipaddr), port=465, use_tls=True, validate_certs=False, timeout=10)
|
smtp = aiosmtplib.SMTP(hostname=str(dbdireccion.ipaddr), port=465, use_tls=True, validate_certs=False, timeout=10)
|
||||||
await smtp.connect()
|
await smtp.connect()
|
||||||
|
conectado = True
|
||||||
|
except Exception as e:
|
||||||
conectado = False
|
conectado = False
|
||||||
await log.debug('Error al conectar al servidor use_tls: {}'.format(e))
|
await log.debug('Error al conectar al servidor use_tls: {}'.format(e))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue