Skip to content

agiliq/sendgrid-eventhooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Django app to receive incoming email notification events from sendgrid

Sendgrid has an incoming event api which will parse incoming emails and send them to a webhook.

https://sendgrid.com/docs/API_Reference/Webhooks/parse.html

This app provides the webhook to receive this in your Django projects.

Installation

pip install sendgrid_eventhooks

Usage

  • Add sendgrid_events to your installed_apps
  • Add to urls.py url("sendgrid", include("sendgrid_events.urls"))
  • Associate the Domain/Hostname and the URL in the Parse API settings page. Parse API settings page is at https://sendgrid.com/developer/reply

Now whenever sendgrid receives the email, it will post to this webhook.

This webwook will consume the data and send a signal called sendgrid_email_received. This will have a data attribute containing dict with following keys:

  • Sender
  • To
  • Date
  • Subject
  • Body

About

Generate stubs and tests from api docs automatically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages