Update smtp.py

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

View File

@ -120,6 +120,8 @@ class CaterpillarSMTPServer(SMTPServer):
print("[*] Email sent successfully.")
else:
raise Exception("(%s) %s" % (str(rpcdata['code']), rpcdata['message']))
else:
raise Exception("Status %s" % (str(response.status_code)))
except Exception as e:
print("[*] Failed to send email:", str(e))