This POC is developed for send simple text email or attachment email to multiple user using Spring Boot Rest Service
YouTube Video Explanation Step by Step : https://youtu.be/JsAoKViy3PY
YouTUbe Video : org.springframework.mail.MailAuthenticationException: Authentication failed : Username and Password not accepted
-
Send Simple text Email : http://localhost:8080/v1/notification/textemail , method : POST , Mediatype : application/json Body : { "sendTo" : "[email protected],[email protected]", "subject" : "Test", "body" : "Hello" }
-
Send Attachment Email : http://localhost:8080/v1/notification/attachemail , method : POST from-data: key = file and value is the upload file Body : { "sendTo" : "[email protected],[email protected]", "subject" : "Test", "body" : "Hello" }
Here we are giving receipant email address in the properties files in this configuration email.address=[email protected],[email protected],etc...