Dewmail 30 sec Quick Start Guide
In less than 30 seconds your API can be processing customer emails with Dewmail.
-
First, create the following MX records for your domain example.com
TYPE | SUBDOMAIN | MAILSERVER HOST | PREF | TTL |
MX | api | in1.dewmail.org. | 10 | 300 |
MX | api | in2.dewmail.org. | 20 | 300 |
-
Send an email from any client--for example, consider the following message.
To: foo+bar@api.example.com
Subject: Dewmail | An email parsing microservice for HTTP APIs
Body: Visit our website at http://dewmail.org/
-
That's it!
Dewmail will receive and parse your email generating the following JSON request
{
"body": "Visit our website at http://dewmail.org/",
"from": "client@example.org",
"links": [ "http://dewmail.org/" ],
"sender-IP": "12.34.56.78",
"spf": "Pass",
"subject": "Dewmail | An email parsing microservice for HTTP APIs",
"time": "2015-01-17T08:00:39Z",
"to": "foo+bar@api.example.com"
}
which it will submit to http://api.example.com/foo/bar.
Your API can then parse the message however you see fit.