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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page