Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PMRMS Notif
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ghitha Dinan
PMRMS Notif
Commits
721155b8
Commit
721155b8
authored
Jan 10, 2022
by
Ghitha Dinan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add send email
parent
c5aabb46
Pipeline
#408
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
EmailController.kt
...emenag/madrasah/pmrms/notif/controller/EmailController.kt
+1
-1
application.properties
src/main/resources/application.properties
+4
-4
No files found.
src/main/kotlin/id/go/kemenag/madrasah/pmrms/notif/controller/EmailController.kt
View file @
721155b8
...
...
@@ -20,7 +20,7 @@ class EmailController {
@Autowired
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
>
{
return
service
.
sendEamil
(
request
)
}
...
...
src/main/resources/application.properties
View file @
721155b8
...
...
@@ -30,11 +30,11 @@ spring.servlet.multipart.max-file-size=500MB
spring.servlet.multipart.max-request-size
=
500MB
# MAIl CONFIG DEV
spring.mail.host
=
smtp.
mailtrap.io
spring.mail.host
=
smtp.
gmail.com
spring.mail.port
=
587
spring.mail.username
=
bb817095de807a
spring.mail.password
=
e625767e122812
spring.mail.from
=
0b5d29e626-65f490@inbox.mailtrap.io
spring.mail.username
=
dinanhafiza@gmail.com
spring.mail.password
=
sembalap1991
spring.mail.from
=
dinanhafiza@gmail.com
spring.mail.properties.mail.smtp.auth
=
true
spring.mail.properties.mail.smtp.connectiontimeout
=
25000
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment