mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 15:31:45 +00:00
Update smtp.py
This commit is contained in:
parent
e8c9f3ceb1
commit
58fc7ec088
2
smtp.py
2
smtp.py
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user