This is a project contains examples for sending e-mails with Spring Boot and Java Mail Sender.
- Open terminal, navigate to your project
- Type command mvn clean install
- Type command mvn spring-boot:run
- Navigate to project directory
- Type command:
mvn clean package -DskipTests
- You can find your .jar file in
target
folder.
If you want to disable authentication (or your server does not require authentication), in EmailConfiguration.java
set smtp.auth property to false.
NOTE: If you are using G-mail as your mail provided for sending e-mails make sure you allow less secure apps in G-mail support.
Heril Muratović
Software Engineer
Mobile: +38269657962
E-mail: [email protected]
Skype: hedza06
Twitter: hedzakirk
LinkedIn: https://www.linkedin.com/in/heril-muratovi%C4%87-021097132/
StackOverflow: https://stackoverflow.com/users/4078505/heril-muratovic