📩 A Java Spring Boot application for sending email messages.
This project implements email sending via an SMTP server using Spring Boot and Spring Mail.
The login and password for email sending are stored separately in the .env.properties
file.
- Java 17
- Spring Boot
- Spring Mail
- Maven
- Gmail SMTP Server
-
Clone the repository:
git clone https://github.com/IvashDima/JavaPro_HW15_Email.git
-
Navigate to the project directory:
cd JavaPro_HW15_Email
-
Create a .env.properties file in the project root:
spring.mail.username[email protected] spring.mail.password=your_password spring.security.oauth2.client.registration.google.client-id=your_client-id spring.security.oauth2.client.registration.google.client-secret=your_client-secret
-
Run the application:
mvn spring-boot:run
To use Gmail SMTP, you must allow access for less secure apps or use an App Password if you have two-factor authentication enabled. If emails are not being sent, double-check your Gmail security settings.
Name: Dmytro Ivashchenko
Email: [email protected]
This project is provided for educational purposes only and does not have a specific license. Feel free to use and adapt it for your learning and personal projects!