Adds email config admin view (#2494)
This view lets you see your email configuration and send a test email.
This commit is contained in:
parent
ac8b060d58
commit
c314c9b5e3
11 changed files with 250 additions and 23 deletions
|
@ -18,6 +18,12 @@ def email_data():
|
|||
}
|
||||
|
||||
|
||||
def test_email(user):
|
||||
"""Just an admin checking if emails are sending"""
|
||||
data = email_data()
|
||||
send_email(user.email, *format_email("test", data))
|
||||
|
||||
|
||||
def email_confirmation_email(user):
|
||||
"""newly registered users confirm email address"""
|
||||
data = email_data()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue