Skip to content

Simple package to wrap Django's built-in send_mail function with channels

License

Notifications You must be signed in to change notification settings

albertoconnor/channels-sendmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Channels Sendmail

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"

About

Simple package to wrap Django's built-in send_mail function with channels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages