#3639 (How to quickly test the mail settings of a new site)
by Luc Saffre · in Hosting (system administration)
Summary
Children
Comments
- 6 years, 5 months ago by Luc Saffre about #3639 (How to quickly test the mail settings of a new site) : More efficient would be to extend our diag management command. Instead of just issuing its report to stdout if would ask for a confirmation and then potentially send it to the admins.
- 6 years, 5 months ago by Luc Saffre about #3639 (How to quickly test the mail settings of a new site) : ATM I paste and then run a script testmail.py containing something like this:
from django.conf import settings from django.core.mail import mail_admins body = "This has been sent using testmail.py in {}\n".format(settings.SITE) for k in """EMAIL_HOST EMAIL_HOST_USER DEFAULT_FROM_EMAIL SERVER_EMAIL ...