Skip to main content

Add email check to django-health-check.

Project description

django-health-check-email

This is a plugin for django-health-check, which check that your app can send emails through the email backend configured in your Django settings.

Installation

Install with pip in your environment:

pip install django-health-check django-health-check-email

Add the app to your INSTALLED_APPS:

INSTALLED_APPS = [
    # ...
    'health_check',                             # required
    # ...
    'health_check_email',
]

Apply migrations:

python manage.py migrate

Configuration

Add your settings to HEALTH_CHECK:

HEALTH_CHECK = {
    "EMAIL_ENABLED": True,
    "EMAIL_IS_CRITICAL": True,
    "EMAIL_SUBJECT": "my email health check",
    "EMAIL_MESSAGE": "my message",
    "EMAIL_FROM": "test@example.com",
    "EMAIL_TO": ["admin@example.com", "dev@example.com"],
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-health-check-email-0.1.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

django_health_check_email-0.1.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page