Update smtp.py

This commit is contained in:
Namhyeon Go 2024-03-01 04:39:02 +09:00 committed by GitHub
parent e8c9f3ceb1
commit 58fc7ec088
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,7 +119,7 @@ class CaterpillarSMTPServer(SMTPServer):
if rpcdata['success']:
print("[*] Email sent successfully.")
else:
print("[*] Failed to send email.")
raise Exception("(%s) %s" % (str(rpcdata['code']), rpcdata['message']))
except Exception as e:
print("[*] Failed to send email:", str(e))