mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
740cbd6cb2
commit
9177bda0bc
@ -101,8 +101,12 @@ def sendmail(msg, from_, to, localhost=None, verbose=0, timeout=30,
|
|||||||
if encryption == 'SSL':
|
if encryption == 'SSL':
|
||||||
s.sock = s.file.sslobj
|
s.sock = s.file.sslobj
|
||||||
s.login(username, password)
|
s.login(username, password)
|
||||||
s.sendmail(from_, to, msg)
|
ret = None
|
||||||
return s.quit()
|
try:
|
||||||
|
s.sendmail(from_, to, msg)
|
||||||
|
finally:
|
||||||
|
ret = s.quit()
|
||||||
|
return ret
|
||||||
|
|
||||||
def option_parser():
|
def option_parser():
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user