This is an example Spring Boot 3 project for sending emails using Gmail's SMTP server with a Gmail account.
- Get an App Password as described here: https://support.google.com/mail/answer/185833
- Replace the specific arguments in EmailSender.java
mvn clean package
Navigate to EmailSenderApplication.java and run it with your IDE.