Content-Length: 299998 | pFad | http://github.com/Ayushkhodankar/EmailSenderApplication

AC GitHub - Ayushkhodankar/EmailSenderApplication: Spring Boot-based Email Sender Application that allows users to send emails through a simple and user-friendly interface
Skip to content

Spring Boot-based Email Sender Application that allows users to send emails through a simple and user-friendly interface

Notifications You must be signed in to change notification settings

Ayushkhodankar/EmailSenderApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Sender Application

This is a Spring Boot-based Email Sender Application that allows users to send emails through a simple and user-friendly interface. The backend is built with Spring Boot, and the frontend is developed using HTML, CSS, and JavaScript. This project supports Java 17 and integrates with SMTP for sending emails.

Features

  • Send emails to any recipient.
  • Simple frontend with a lightweight design.
  • Secure SMTP authentication.
  • Configurable SMTP settings via application.properties.
  • Built for Java 17.

Project Structure

EmailSender/
├── src/
│   ├── main/
│   │   ├── java/com/emailsender/
│   │   │   ├── EmailSenderApplication.java       # Main application file
│   │   │   ├── controller/EmailController.java   # REST API controller
│   │   │   ├── service/EmailService.java         # Email sending logic
│   │   ├── resources/
│   │   │   ├── application.properties            # Email configuration
│   │   ├── webapp/
│   │   │   ├── index.html                        # Frontend HTML
│   │   │   ├── styles.css                        # Frontend CSS
├── pom.xml                                       # Maven dependencies

Prerequisites

Software Requirements:

  • Java 17 or later installed.
  • Maven installed.
  • An email account for SMTP (e.g., Gmail, Outlook).

Setup Instructions

Clone the Repository

git clone https://github.com/your-username/email-sender.git
cd email-sender

Configure the SMTP Server

  1. Open the src/main/resources/application.properties file.
  2. Update the following properties with your email and password:
    spring.mail.host=smtp.gmail.com
    spring.mail.port=587
    spring.mail.username=your-email@gmail.com
    spring.mail.password=your-app-password
    spring.mail.properties.mail.smtp.auth=true
    spring.mail.properties.mail.smtp.starttls.enable=true
            
  3. For Gmail:

Build and Run the Application

mvn clean install
mvn spring-boot:run

Access the Frontend

Open your browser and go to:

http://localhost:8080

Fill in the form with the recipient email, subject, and message, then click Send Email.

API Endpoints

Send Email

POST /api/email/send

Request Parameters:

Parameter Type Description
to String Recipient email address
subject String Email subject
body String Email message body

Example Request:

curl -X POST "http://localhost:8080/api/email/send" \
     -d "to=example@example.com&subject=Hello&body=Test message"

Example Response:

Success:

"Email sent successfully to example@example.com"

Error:

"Error sending email: Authentication failed"

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

About

Spring Boot-based Email Sender Application that allows users to send emails through a simple and user-friendly interface

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Ayushkhodankar/EmailSenderApplication

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy