Skip to content

ometelytsia/RESTMail

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

RESTMail

RESTMail is a SMTP server with a HTTP REST interface for accessing mails.

STMP server built on Inbox.py (https://github.com/kennethreitz/inbox.py).

Required packages

  • Inbox.py

REST API

Get mails

Request: GET /inbox/:email-address

Response:

[
  {
    "received": "2012-05-11 01:59:38", 
    "sender": "[email protected]", 
    "attachments": [
       {
         "type": "image/png", 
         "payload-id": "9cd6b97ed75d36ca6eeff82dffa098e375c4fe84", 
         "filename": "logo.png"
     }
    ], 
    "content": "Example message", 
    "to": [
    "[email protected]"
   ], 
   "id": "5abf12ad7dae55a2faad5c36af198631", 
   "subject": "Test message"
  }

]

Get attatchment

Request: GET /files/:payload-id

About

RESTful interface to Inbox.py SMTP server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%