This is a simple web application for sending emails, developed with a backend built using Spring Boot and a frontend built using React.js.
The backend provides the following endpoints:
- POST
/sendMail
: Sends an email without attachment. - POST
/sendAttachmentMail
: Sends an email with attachment.
- Spring Boot: Framework for creating web applications with Java.
- Spring Boot Starter Mail: Provides support for sending emails in Spring Boot applications.
- Lombok: Java library to reduce boilerplate code.
- JUnit: Testing framework for Java.
- React.js: JavaScript library for building user interfaces.
- react-scripts: Configuration and scripts for Create React App.
- Ensure you have Maven installed.
- Navigate to the
EmailService-Backend
directory. - Run the following command to start the backend server:
mvn spring-boot:run
- Ensure you have Node.js and npm installed.
- Navigate to the frontend directory.
- Run the following command to install dependencies:
npm install
- Run the following command to start the frontend server:
npm run dev
- Open your web browser and go to
http://localhost:5173
to access the frontend application. - Interact with the frontend UI to send emails with or without attachments.
- Sending Email without Attachment:
- Enter recipient email, subject, and message body.
- Click on the "Send Email" button.
- Sending Email with Attachment:
- Enter recipient email, subject, message body, and choose an attachment file.
- Click on the "Send Email" button.