GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ui/django_asynchronous_send_mail: Simple asynchronous wrapper for Django's send_mail() using Python's threading

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
asynchronous_send_mail
asynchronous_send_mail
 
 
.gitignore
.gitignore
 
 
AUTHORS.txt
AUTHORS.txt
 
 
README.rst
README.rst
 
 

Repository files navigation

django-asynchronous_send_mail

A very simple wrapper around Django's built in send_mail to send email asynchronously using Python's threading - really useful for servers with slow internet connection. If you want more advanced features like mail queuing or scheduling you should look at other alternatives such as Django Mailer

OVERVIEW

For a more thorough explanation of what this bit of code tries to solve please visit: http://ui.co.id/blog/asynchronous-send_mail-in-django

This is not intended to replace

INSTALLATION

Put django_asynchronous_send_mail in your Python path.

USAGE

try:
from django_asynchronous_send_mail import send_mail
except:
from django.core.mail import send_mail

The rest is the same as Django's normal send_mail(), in fact, if your project already uses Django's built in send_mail(), you don't need to change anything :)

Example:

send_mail('Subject here', 'Here is the message.', '[email protected]', ['[email protected]'], fail_silently=False)

If you want to send HTML email:

send_mail('Subject here', 'Here is the message.', '[email protected]', ['[email protected]'], fail_silently=False, html = '<HTML_TEXT_HERE>')

About

Simple asynchronous wrapper for Django's send_mail() using Python's threading

ui.co.id/

Resources

Readme
Activity

Stars

20 stars

Watchers

3 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.