Metadata-Version: 2.1
Name: django-client-emailer
Version: 0.9.0
Summary: A django package which act as a gateway to send email with different clients
Home-page: https://github.com/tardonly/django-client-emailer
Author: tardonly
Author-email: rampratap305@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Description-Content-Type: text/markdown
Requires-Dist: django
Requires-Dist: boto3
Requires-Dist: validate-email
Requires-Dist: requests
Requires-Dist: botocore
Requires-Dist: mailjet-rest

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.





