Diverse Code Cleanups
*Code wurde PEP-8 gerecht formatiert * Kleine Fehler die der PyCharm Inspector beanstandet wurden korrigiert
This commit is contained in:
committed by
Christian Berg
parent
f34281089d
commit
86a0db050d
@@ -6,11 +6,11 @@ from django.template import loader, Context
|
||||
|
||||
|
||||
class MassMailer(object):
|
||||
'''
|
||||
"""
|
||||
This Class will send E-Mails via an SMTP Connection to multiple recipients.
|
||||
Each E-Mail will be send individually and can be personalized.
|
||||
It will be send as HTML and Plain-Text Message.
|
||||
'''
|
||||
"""
|
||||
context = {}
|
||||
headers = {}
|
||||
subject = None
|
||||
@@ -83,9 +83,9 @@ class MassMailer(object):
|
||||
self.headers[name] = value
|
||||
|
||||
def send(self):
|
||||
'''
|
||||
"""
|
||||
Process the E-Mails and send them
|
||||
'''
|
||||
"""
|
||||
self.process_mails()
|
||||
if len(self.mail_queue) == 0:
|
||||
self.log.info('No recipients for eMail "%s", bye!', self.subject)
|
||||
|
||||
Reference in New Issue
Block a user