Small docker-ready express server to handle Mailgun mailing subscriptions.
APP_BASE
- App base pathMAILGUN_DOMAIN
- Your Mailgun domainMAILGUN_API_KEY
- Your Mailgun api keyMAILGUN_PUBLIC_API_KEY
- Your Mailgun public api keyMAILGUN_MAILING_LIST
- Your Mailgun mailing listWHITELIST_DOMAINS
- Comma-separated list of CORS allowed domains
Subscribes user to mailing list.
Body
{
"name": "John Doe",
"email": "john@example.com",
"custom_variable": "goes to mailgun variables"
}
Mailgun email validation.
Body
{
"email": "john@example.com"
}