An API proxies HTTP-backed vendor mailer calls to SMTP.
Plug a MailHog or MailCatcher to API email sending vendors such as SparkPost, MailGun or Twilio 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.
- Checkout this repo or only copy the
.env.dist
anddocker-compose.yml
files - Rename
.env.dist
into.env
- Update the values accordingly
- Pull images and run
docker-compose up http2smtp
API documentation: https://developers.sparkpost.com/api/transmissions/#transmissions-post-send-inline-content
API documentation: https://developers.sparkpost.com/api/transmissions/#transmissions-post-send-rfc822-content
POST /sparkpost/api/v1/transmissions
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.