Create spooler.py
This commit is contained in:
parent
95dbb40c01
commit
7611ac70dc
10
isso/ext/spooler.py
Normal file
10
isso/ext/spooler.py
Normal file
@ -0,0 +1,10 @@
|
||||
def spooler(args):
|
||||
try:
|
||||
self._sendmail(args[b"subject"].decode("utf-8"),
|
||||
args["body"].decode("utf-8"))
|
||||
except smtplib.SMTPConnectError:
|
||||
return uwsgi.SPOOL_RETRY
|
||||
else:
|
||||
return uwsgi.SPOOL_OK
|
||||
|
||||
uwsgi.spooler = spooler
|
Loading…
Reference in New Issue
Block a user