mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-03-11 00:15:16 +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']:
|
if rpcdata['success']:
|
||||||
print("[*] Email sent successfully.")
|
print("[*] Email sent successfully.")
|
||||||
else:
|
else:
|
||||||
print("[*] Failed to send email.")
|
raise Exception("(%s) %s" % (str(rpcdata['code']), rpcdata['message']))
|
||||||
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