📩 An API that forwards HTTP-backed vendor mailer calls to an SMTP catcher
MIT License
An API that forwards HTTP-backed vendor mailer calls to SMTP.
Plug a MailHog or MailCatcher to API email sending vendors such as SparkPost, Mailgun or SendGrid for testing purposes.
See examples.
⚡ ProTip: for tracing purposes, this app kinda supports W3C Trace Context recommendation. Configure the env var TRACEPARENT_HEADER
and inject any trace into this header value. All log entries will be contextualized with the given value.
.env.dist
and docker-compose.yml
files.env.dist
into .env
docker-compose up http2smtp
⚡ This project is also shipped for an AWS Lambda Function-ready. Check out the README.
POST /sparkpost/api/v1/transmissions
SparkPost supports either inline or RFC 822 transmissions. For now, only the latter one is supported.
Basic validation is enforced, only the recipients list email and the RFC 822 content are used and mandatory.
This project is licensed under the MIT License - see the LICENSE file for details.