Skip to content

Instantly share code, notes, and snippets.

View edufelipe's full-sized avatar

Eduardo Felipe edufelipe

View GitHub Profile
@edufelipe
edufelipe / sendmail.py
Last active December 11, 2015 20:58 — forked from xfenix/gist:3206768
"""sendmail django email backend class."""
import threading
from django.conf import settings
from django.core.mail.backends.base import BaseEmailBackend
from subprocess import Popen,PIPE
class EmailBackend(BaseEmailBackend):
def __init__(self, fail_silently=False, **kwargs):