Skip to content

This repository contains a Rest API for sending E-mail using Spring Boot.Spring framework provides a number of library classes for sending email. It provides an easy to use mail interface called JavaMailSender built on top of the JavaMail API. JavaMail API is a messaging framework available as part of Java SE and Java EE platforms.

License

Notifications You must be signed in to change notification settings

MukulJaiswal/SpringBoot-Restful-Mail-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 -

About

This repository contains a Rest API for sending E-mail using Spring Boot.Spring framework provides a number of library classes for sending email. It provides an easy to use mail interface called JavaMailSender built on top of the JavaMail API. JavaMail API is a messaging framework available as part of Java SE and Java EE platforms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages