nopaque/web/app/daemon/libnotify/service.py
Patrick Jentsch 0f30e518af First steps
2020-11-06 15:07:58 +01:00

17 lines
486 B
Python

class NotificationService:
"""This is a nopaque notifcation service object."""
def __init__(self, smtp):
# Bool to show if the mail server stoped sending mails due to exceeding
# its sending limit
self.mail_limit_exceeded = False
# Holds due to an error unsent email notifications
self.not_sent = {}
self.smtp = smtp
def send(self, email):
self.smtp.send_message(email)
def quit(self):
self.smtp.quit()