Skip to content

Prog-Academy-projects/JavaPro_HW15_Email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaPro Homework 15: Email Sender

Java Spring Boot Build License

📩 A Java Spring Boot application for sending email messages.

📋 Project Description

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.


🛠️ Technologies Used

  • Java 17
  • Spring Boot
  • Spring Mail
  • Maven
  • Gmail SMTP Server

🚀 Quick Start

  1. Clone the repository:

    git clone https://github.com/IvashDima/JavaPro_HW15_Email.git
    
  2. Navigate to the project directory:

    cd JavaPro_HW15_Email
    
  3. 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
    
  4. Run the application:

    mvn spring-boot:run
    

📌 Important Notes

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.

👨‍💻 Author

Name: Dmytro Ivashchenko

Email: [email protected]

📝 License

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!

Releases

No releases published

Packages

No packages published

Languages