Skip to content

perenecabuto/django-sendmail-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-sendmail-backend

Its a simple command line sendmail backend for Django

Motivation

I like to use msmtp to abstract the smtp server from my projects. Because it is easy to set environment specifity mail server.

Install

pip install django_sendmail_backend

Usage

Set the EMAIL_BACKEND var in your settings module

EMAIL_BACKEND = 'django_sendmail_backend.backends.EmailBackend'

If your sendmail binary is not at /usr/sbin/sendmail (see MTA section below), you'll also need to set

SENDMAIL_BINARY = '/path/to/sendmail'

MTA

You will need any mta installed (like postfix or exim) and a executable sendmail command.

Try to install msmtp for test

On Debian/Ubuntu

sudo apt-get install msmtp-mta

About

Its a simple command line sendmail backend for Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages