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':
|
||||
s.sock = s.file.sslobj
|
||||
s.login(username, password)
|
||||
s.sendmail(from_, to, msg)
|
||||
return s.quit()
|
||||
ret = None
|
||||
try:
|
||||
s.sendmail(from_, to, msg)
|
||||
finally:
|
||||
ret = s.quit()
|
||||
return ret
|
||||
|
||||
def option_parser():
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user