Codebase for the blog post Send emails with Java EE using Payara
Steps to run this project:
- Clone this Git repository
- Navigate to the folder
java-ee-sending-mails - Replace the targeted email in
src/main/resources/META-INF/microprofile-config.propertieswith yours - Build the project with
mvn clean package - Start your Docker daemon (
docker-composerequired) - Run
docker-compose build && docker-compose up - Visit
http://localhost:8080/resources/mailsto send a sample email to your address (the incoming email might be blocked by your email provider or marked as spam)