Skip to main content

A django package which act as a gateway to send and receive email with amazon SES.

Project description

django-ses-gateway’s documentation:

https://travis-ci.org/MicroPyramid/django-ses-gateway.svg?branch=master Downloads Latest Release https://coveralls.io/repos/github/MicroPyramid/django-ses-gateway/badge.svg?branch=master Code Health https://img.shields.io/github/license/micropyramid/django-ses-gateway.svg

Introduction:

django-ses-gateway is used for sending mails from your verified domains and verifed domains with less cost. We can also use django-ses-gateway for receive messages and deliver them to an Amazon S3 bucket in an enctypted format, call your custom code via an AWS Lambda function, or publish notifications to Amazon SNS to process the response.

Installation Procedure

  1. Install django-ses-gateway using the following command:

    pip install django-ses-gateway
    
                (or)
    
    git clone git://github.com/micropyramid/django-blog-it.git
    
    cd django-ses-gateway
    
    python setup.py install
  2. After installing/cloning this, add the following details in settings file to send/receive emails notifications

    # AWS details
    
    AWS_ACCESS_KEY_ID = "Your AWS Access Key"
    
    AWS_SECRET_ACCESS_KEY = "Your AWS Secret Key"

Usage:

  1. Sending an email:

    sending_mail(subject, email_template_name, context, from_email, to_email)
  2. Receiving an email:

    from django_ses_gateway.receiving_mail import sns_notification
    subject, from_mail, to_mail, hash_code, mail_content = sns_notification(request.body)

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-ses-gateway-0.1.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file django-ses-gateway-0.1.tar.gz.

File metadata

File hashes

Hashes for django-ses-gateway-0.1.tar.gz
Algorithm Hash digest
SHA256 584c1c8af74cb740ad2fe20eb53b22219fe78aa8635a9ebaaa8bcdb0d49a6038
MD5 251e551a1e14fb0a85fc91f530b31fb2
BLAKE2b-256 de2717bef99026c5da51f14f03c920359c6ae0427781507ca8af90c02cb9f19f

See more details on using hashes here.

Provenance

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