Skip to main content

Send an error email when an you get an exception.

Project description

Send an error email when an you get an exception.

  • Free software: BSD license

  • Documentation: See Below

What does it do?

Here is how it works:

with ErrorEmail(email_config):
    do_stuff()

If do_stuff raises an exception, it will send an email with the traceback. That’s it.

Configuration

The ErrorEmail context manager accepts a configuration dictionary that defines the To, From and SMTP server information. Here is an example:

{
  'SERVER': 'smtp.myhost.com',
  'PORT': 25,
  'TO': ['foo@bar.com', 'baz@bar.com'],
  'FROM': 'erroremailer@myhost.com',
}

ErrorEmail doesn’t have robust email support at the moment. I’m happy to accept pull requests!

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

erroremail-0.1.6.tar.gz (11.7 kB view details)

Uploaded Source

File details

Details for the file erroremail-0.1.6.tar.gz.

File metadata

  • Download URL: erroremail-0.1.6.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for erroremail-0.1.6.tar.gz
Algorithm Hash digest
SHA256 656ed9667773ce9b48a8b1db02fd9f21ac0f202906c3d58460c3648524bacc65
MD5 c714be23ec2235b4d9b9745ec12b69cd
BLAKE2b-256 14d3be31fe8d228dce1ac36c5872d176a2e4b18615385cd4aba6e39e56fbe325

See more details on using hashes here.

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