Skip to main content

Simple package to wrap Django’s built-in send_mail function with channels, sending the mail with whichever backend you are using asynchronously.

Install

Requires Django 1.8+ and Channels.

pip install channels-sendmail

Usage

Add to your routing

channel_routing = [
  # ...
  include('sendmail.routing.channel_routing'),
]

Use where you have used django.core.mail.send_mail in the past:

from sendmail import send_mail

send_mail(...)  # Normal arguments to send_mail

Configuration

  • CHANNELS_SENDMAIL_CHANNEL_NAME which defaults to “django.core.mail.send_mail”

Download files

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

Source Distribution

channels-sendmail-0.0.1.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file channels-sendmail-0.0.1.tar.gz.

File metadata

File hashes

Hashes for channels-sendmail-0.0.1.tar.gz
Algorithm Hash digest
SHA256 31e3f45dd1cf3fb970d25bc8d8b73606c3e42de1bb6ede7bd455b493d25fd135
MD5 3e23b6b728978a8a261c64002374f2a0
BLAKE2b-256 073d5e29410c2b8bfd5de5c9bd0e49549b8eb299320edb7fd58947161c6663ac

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page