1
0
Fork 0

Adds email config admin view (#2494)

This view lets you see your email configuration and send a test email.
This commit is contained in:
Mouse Reeve 2022-12-11 11:37:09 -08:00 committed by GitHub
parent ac8b060d58
commit c314c9b5e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 250 additions and 23 deletions

View file

@ -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()