mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 02:53:38 +02:00
...
This commit is contained in:
parent
740cbd6cb2
commit
9177bda0bc
1 changed files with 6 additions and 2 deletions
|
|
@ -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…
Reference in a new issue