Skip to content

helios66/bare-bones-receiver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Bare Bones Receiver

This is a simple Google App Engine app that will receive emails and POST them to a url. It's a cheap and easy way to let your app receive emails.

How to use it

There shouldn't be much setup to this, just change a thing or two and upload:

  • Fire up a new GAE app
  • Change the 'application' in app.yaml to your app name
  • Change 'url' in main.py to your POST url
  • Deploy!

Email works like this: __________@.appspotmail.com
Dont forget the appspotMAIL part! Otherwise it won't go through.

POST format

The POST output is like the one described in the GAE mail docs here.

sender : The message sender
to : Sent to
cc : Cc
date : Date
subject : Subject
html_body : HTML version of the body
plaintext_body : Plain text version of the body
original : The original message, complete with email headers and attachments, ect

If you want to get the attachments just use your preferred method to parse them out of the original POST field once you receive the POST at your url. (Unless you can find a better way to send multipart POST from the attachments received in the app... I couldn't seem to find a good way to do it.)

Note, GAE has some limits on incoming and outgoing request size (5mb request and 32mb response). You can see the limits here

About

A simple GAE app that receives emails and POSTs them to a URL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published