Commit 721155b8 authored by Ghitha Dinan's avatar Ghitha Dinan

add send email

parent c5aabb46
Pipeline #408 failed with stages
...@@ -20,7 +20,7 @@ class EmailController { ...@@ -20,7 +20,7 @@ class EmailController {
@Autowired @Autowired
private lateinit var service: EmailService private lateinit var service: EmailService
@PostMapping(value = ["send-email"], produces = ["application/json"]) @PostMapping(value = ["send"], produces = ["application/json"])
fun sendEmail(@Valid @RequestBody request: EmailRequest): ResponseEntity<ReturnData> { fun sendEmail(@Valid @RequestBody request: EmailRequest): ResponseEntity<ReturnData> {
return service.sendEamil(request) return service.sendEamil(request)
} }
......
...@@ -30,11 +30,11 @@ spring.servlet.multipart.max-file-size=500MB ...@@ -30,11 +30,11 @@ spring.servlet.multipart.max-file-size=500MB
spring.servlet.multipart.max-request-size=500MB spring.servlet.multipart.max-request-size=500MB
# MAIl CONFIG DEV # MAIl CONFIG DEV
spring.mail.host=smtp.mailtrap.io spring.mail.host=smtp.gmail.com
spring.mail.port=587 spring.mail.port=587
spring.mail.username=bb817095de807a spring.mail.username=dinanhafiza@gmail.com
spring.mail.password=e625767e122812 spring.mail.password=sembalap1991
spring.mail.from=0b5d29e626-65f490@inbox.mailtrap.io spring.mail.from=dinanhafiza@gmail.com
spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.connectiontimeout=25000 spring.mail.properties.mail.smtp.connectiontimeout=25000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment