Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.34 KB

README.md

File metadata and controls

52 lines (39 loc) · 1.34 KB

SpringBoot-Restful-Mail-API

This Repository contains Restful Api for sending E-mail using smtp.gmail.com host.

Download or clone this project as :

Download or clone -> Import project ->Existing Maven Projects -> Run as Spring Boot project

APIs Developed for :

1.sendMail                   

2.sendMailWithAttachment

Edit sender's E-mail address and password at application.properties file.

Directory location src/main/resource/application.properties

spring.mail.username = *********@gmail.com	 
spring.mail.password = *********

Write receiver's email address at RegistrationController.java

user.setEmailAddress("Your_Email_Address");

APIs are accessible at the link :

  • Send Mail without Attachment :
http://localhost:8080/send-mail
  • Send Mail with Attachment :
http://localhost:8080/send-mail-attachment

Detailed explanation can be found at :

https://medium.com/cornercode/sending-e-mail-using-spring-boot-rest-api-16bf9c0697aa

Working video

Click Here !

License

This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details

Author

  • Mukul Jaiswal -