Skip to main content

A django package which act as a gateway to send email with different clients

Project description

django-client-emailer:

Introduction:

django-client-emailer is used for sending mails from different clients i.e. AWS, sendgrid, mailjet etc.

Source Code is available in Repository(https://github.com/tardonly/django-client-emailer).

Modules used:

  • boto3
  • requests
  • django

Requirements

Python  >= 3.4

Installation Procedure

  1. Install django-client-emailer using the following command::

     pip install django-client-emailer
     	or
     git clone git://github.com/micropyramid/django-email-gateway.git
    
     cd django-client-emailer
    
     python setup.py install
    
  2. After installing/cloning this, add the following details in django settings file to send emails notifications ::

    MAIL_SENDER = 'AMAZON' for aws or 'MAILGUN' for mailgun or 'SENDGRID' for sendgrid or 'MAILJET' for mailjet or None for django default mailer

    AWS details if mail sender amazon

    AWS_ACCESS_KEY_ID = "Your AWS Access Key"

    AWS_SECRET_ACCESS_KEY = "Your AWS Secret Key"

    mailgun if mail sender is mailgun

    MGUN_API_URL = 'mailgun api url'

    MGUN_API_KEY = 'mailgun api key'

    mailjet if mail sender is mailjet

    MJ_APIKEY_PUBLIC = 'mailjet api key'

    MJ_APIKEY_PRIVATE = 'mailjet api secret'

validating emails

Email get validated from validate_email

Usage:

#####Sending an email:

send_mail(subject, email_template_name, context, from_email, to_email, verified, cc_list=None, bcc_list=None)

It will process the your message content, will return the email subject, from mail, to email(abc@yourdomain.com), hashcode(abc), mail content.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-client-emailer-0.9.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

django_client_emailer-0.9.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file django-client-emailer-0.9.0.tar.gz.

File metadata

  • Download URL: django-client-emailer-0.9.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for django-client-emailer-0.9.0.tar.gz
Algorithm Hash digest
SHA256 6eb382a90f54d1e3dfc7d2bb67512b68957e331c1001bb03bd9273f4226e337b
MD5 4b3e5d1ee239a08e2c69138134715d07
BLAKE2b-256 8c028deec3ea96bbeea4821aa1d83e5f8add196d04e7a68710b4b320acc6a4e5

See more details on using hashes here.

File details

Details for the file django_client_emailer-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: django_client_emailer-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for django_client_emailer-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1737fbcb9814f0ea04079f65bd21b3626151b77b8ea22823e471b873bd0da6cf
MD5 d7f5c68fb019ba79f12b86549588c3d1
BLAKE2b-256 be4e491e516f27a28cf404f55307fc8302ca8a1b84aabc3985d05c37eb766093

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page