API for sending email
- Goto Google Account
- Search App Password
- In Select App Choose Other(Custom name) and provide name you want
- Click generate
- Copy the 16 letter characters that is your app password
- Go to application.properties set these following
spring.mail.username=juandelacruz@gmail.com
spring.mail.password=abcdefghijkl
app.name=my_app
- Check API endpoints in Postman.
- Spring boot
- Spring mvc
- Java mail API
- Hibernate validator
- Generate the app password: https://www.geeksforgeeks.org/spring-boot-sending-email-via-smtp/
- Docker Run Email Sender API
docker run -itd --rm -p 8091:8091 --name esa_app --env-file ./esa.env elleined/esa
docker compose --env-file <env_file_path> up