mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
17 lines
486 B
Python
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()
|