Skip to content

Commit

Permalink
V1.19.02
Browse files Browse the repository at this point in the history
  • Loading branch information
jgyates committed Mar 29, 2024
1 parent 14cf3ff commit 943839a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions genmonlib/mymail.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,12 @@ def TestSendSettings(
)
except Exception as e1:
# self.LogErrorLine("Error SMTP sendmail: " + str(e1))
session.quit()
return "Error sending email: " + str(e1)
errorstring = str(e1)
try:
session.quit()
except:
pass
return "Error sending email: " + str(errorstring)

session.quit()
return "Success"
Expand Down Expand Up @@ -668,7 +672,10 @@ def sendEmailDirectMIME(
)
except Exception as e1:
self.LogErrorLine("Error SMTP sendmail: " + str(e1))
session.quit()
try:
session.quit()
except:
pass
return False

session.quit()
Expand Down

0 comments on commit 943839a

Please sign in to comment.