mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-03-11 16:35:14 +00:00
Update smtp.py
This commit is contained in:
parent
58fc7ec088
commit
9e9c540a7e
2
smtp.py
2
smtp.py
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user