Skip to main content

Package for sending emails via mailgun. (This package based on django-mailgun package)

Currently tested only on Python 3

Overview

djmailgun is a drop-in mail backend for Django, per https://docs.djangoproject.com/en/1.8/topics/email/#email-backends

Installation

Install django-mailgun:

pip install django-mailgun

Configuration

Depends on version you would like to use:

1) EMAIL_BACKEND = 'djmailgun.backends.v1.Backend'
2) EMAIL_BACKEND = 'djmailgun.backends.v2.Backend'
3) EMAIL_BACKEND = 'djmailgun.backends.v3.Backend'

Next you have to setup access key and server name and there are two ways of doing this.

  1. You could just add this in settings file

    MAILGUN_ACCESS_KEY  = 'ACCESS-KEY'
    MAILGUN_SERVER_NAME = 'SERVER-NAME'
  2. You could migrate all package migrations via

    ./manage.py migrate djmailgun

    Next you have to setup this table for example via admin part of the site. You have to add two records:

1 First
  • key - MAILGUN_ACCESS_KEY

  • value - ACCESS-KEY

2 Second
  • key - MAILGUN_SERVER_NAME

  • value - SERVER-NAME

Now, when you use django.core.mail.send_mail, Mailgun will send the messages

Release files for djmailgun 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djmailgun 0.0.1
File Size Uploaded
djmailgun-0.0.1.tar.gz 4.6 kB Details

Release files / djmailgun-0.0.1.tar.gz

Download URL djmailgun-0.0.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
517e59fe97bf577b9bf325be434c3afa840a511ef366f79fc6712a9f3213631c
BLAKE2b-256 checksum
How to use checksums
7f4fbad9df971134d9bf94ed4d531c4d67eae3627fbe418047df2fc2d049bc48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release 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