Skip to main content

Useful tool for sending signed emails.

Project description

==================
SignedEmailMessage
==================

SignedEmailMessage is a django package modifying the original, built-in EmailMessage
by adding a possibility to add signing certificats.

INITIAL ACTIONS
===============

1. Include SEM in your settings' installed apps.
INSTALLED_APPS = (
...
'SEM',
...
)

2. Add default charset and your authentication certificate to your settings.
DEFAULT_CHARSET = 'utf-8'
AUTH_CERT = "media/cert.pem"

This is the highest available cert in cery-chain.


TYPICAL USAGE
=============

from SEM import SEMail

msg = SEMail.SignedEmailMessage(
subject, message_body, sender, recipient_list, attachments=attachments,
from_key=from_key, from_cert=from_cert)
msg.send()

Where from_key and from_cert are routes to your key and cert:
from_key = "media/mail_key.pem"
from_cert = "media/mail.pem"

REQUIREMENTS
============

Django >= 1.1.1
M2Crypto >= 0.21.1


CONTRIBUTION
============

This package is fully dependent and bases on M2Crpyto.

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-sem-0.2.2.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file django-sem-0.2.2.tar.gz.

File metadata

  • Download URL: django-sem-0.2.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-sem-0.2.2.tar.gz
Algorithm Hash digest
SHA256 767892cb55de0afb86537a4dfe42f97dadbc8056c80bd9fb69feaf05a537cef3
MD5 04e73f61f85d2e21d22ad8b1f42b163e
BLAKE2b-256 9313bf0d4b999195de68acb927373010cfc28d19e993423a9fbe023efb5de348

See more details on using hashes here.

Supported by

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