mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 18:01:07 +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.")
|
print("[*] Email sent successfully.")
|
||||||
else:
|
else:
|
||||||
raise Exception("(%s) %s" % (str(rpcdata['code']), rpcdata['message']))
|
raise Exception("(%s) %s" % (str(rpcdata['code']), rpcdata['message']))
|
||||||
|
else:
|
||||||
|
raise Exception("Status %s" % (str(response.status_code)))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("[*] Failed to send email:", str(e))
|
print("[*] Failed to send email:", str(e))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user