Formatting
This commit is contained in:
parent
c893a06f37
commit
c3f6740083
@ -182,7 +182,7 @@ def make_mailer(app):
|
||||
port=app.config.get("MAIL_PORT"),
|
||||
username=app.config.get("MAIL_SENDER"),
|
||||
password=app.config.get("MAIL_PASSWORD"),
|
||||
use_tls=app.config.get("MAIL_TLS")
|
||||
use_tls=app.config.get("MAIL_TLS"),
|
||||
)
|
||||
sender = app.config.get("MAIL_SENDER")
|
||||
app.mailer = mailer.Mailer(mailer_connection, sender)
|
||||
|
@ -4,7 +4,6 @@ from email.message import EmailMessage
|
||||
|
||||
|
||||
class MailConnection(object):
|
||||
|
||||
def send(self, message):
|
||||
raise NotImplementedError()
|
||||
|
||||
@ -63,7 +62,6 @@ class RedisConnection(MailConnection):
|
||||
|
||||
|
||||
class Mailer(object):
|
||||
|
||||
def __init__(self, connection, sender):
|
||||
self.connection = connection
|
||||
self.sender = sender
|
||||
|
Loading…
x
Reference in New Issue
Block a user