mirror of https://github.com/tp4a/teleport
parent
5f1a3d0f25
commit
2caf5eb02d
|
@ -119,7 +119,8 @@ def tp_send_mail(recipient, message, subject=None, sender=None, cc=None, bcc=Non
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
_smtp.login(_username, _password)
|
if _password is not None:
|
||||||
|
_smtp.login(_username, _password)
|
||||||
|
|
||||||
_smtp.set_debuglevel(0)
|
_smtp.set_debuglevel(0)
|
||||||
send_errors = _smtp.sendmail(
|
send_errors = _smtp.sendmail(
|
||||||
|
|
Loading…
Reference in New Issue