Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 853 Bytes

README.md

File metadata and controls

31 lines (27 loc) · 853 Bytes

A really simple email API

How does it work?

The api uses thymeleaf to render an email, you can use simple variables inside your template and then attach them to the 'data' object in your request.

Usage:

  • Put template files into the /templates/ folder
  • Call the API with '/api/email/'
  • You can render the result before sending with using '/api/email/render'
{
    "to":"[email protected]",
    "subject": "Teszt email!",
    "template":"test.html",
    "data": {
        "name": "sivikee",
        "link": "https://example.com"
    }
}

Todo:

  • API now can send simple emails
  • API now can send html emails
  • OpenAPI spec & Swagger
  • Create docker image and publish to hub
  • Create a better readme
  • Create CI/CD pipeline
  • Add better documentation
  • Add support for file attachments via multipart