diff --git a/src/main/java/com/koliving/api/room/application/RoomService.java b/src/main/java/com/koliving/api/room/application/RoomService.java index 8bb2dea9..c967b03b 100644 --- a/src/main/java/com/koliving/api/room/application/RoomService.java +++ b/src/main/java/com/koliving/api/room/application/RoomService.java @@ -159,10 +159,9 @@ public void contact(RoomContactRequest request, User user) { final Room room = getRoom(request.roomId()); final Notification notification = Notification.of(user, room.getUser()); room.getUser().addReceivedNotification(notification); - emailService.sendRoomContact("haedoang@naver.com", request.contactInfo(), request.message(), user, getRoomDetailUrl(room.getId())); + emailService.sendRoomContact(room.getUser().getEmail(), request.contactInfo(), request.message(), user, getRoomDetailUrl(room.getId())); } - public String getRoomDetailUrl(Long roomId) { return String.format("%s/room/%d", frontProperties.getOrigin(), roomId); } diff --git a/src/main/resources/templates/contact-email-template.html b/src/main/resources/templates/contact-email-template.html index 226e20c8..73410431 100644 --- a/src/main/resources/templates/contact-email-template.html +++ b/src/main/resources/templates/contact-email-template.html @@ -1,52 +1,204 @@ - - - - + + + + - - - -
-
-

-
-
- -
-
-
- Room link:
- Message:
- Contact info:
- Sender’s Profile: -
-
-
-
- userProfile -
-
-