This project is a Spring Boot-based application that allows sending emails with or without attachments through a user interface. It uses Java Mail Sender for email functionality and provides a simple web interface for users to input the necessary information.
Clone the repository:
git clone https://github.com/mamyDinyah34/SMTP_SpringBoot.git
cd SMTP_SpringBoot
Configure the application.properties
file:
Add the necessary SMTP settings in the src/main/resources/application.properties
file:
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=<YOUR_EMAIL>
spring.mail.password=<YOUR_PASSWORD>
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.ssl.trust=smtp.gmail.com
Build and run the application:
mvn clean install
mvn spring-boot:run
Access the application:
Open your browser and go to http://localhost:8080
.