This app is my open source implementation of an SMTP server using Spring Boot and GraphQL.
Feel free to fork the project and use it as you like.
The credentials for the app are currently stored in a .env
file for security reasons.
You need to provide your own .env
file or setup the environment on your deployment machine.
This project can also be used as a microservice, part of a bigger backend.
The included tests/
directory includes all the necessary unit tests needed to qualify the app.
- Clone the repo:
git clone github.com/DroidZed/spring-mailer-app.git
- Create your environment variables:
SMTP_HOST=
SMTP_PORT=
SMTP_USRNAME=
SMTP_PASSWORD=
TO= # Your domain's email
SERVER_PORT=
IMAGE_TAG_SPRING_MAILER_APP= # docker image tag
- build it:
make build
- Test the code:
make test
- Run the app:
mvn run
I have included the necessary files for Docker and Jenkins ๐
Happy coding!