Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public class MoodTrackerMailServiceImpl implements MoodTrackerMailService {

private final HashIdUtil hashIdUtil;

// 예시
@Value("${survey-url}")
private String surveyBaseUrl;

Expand All @@ -48,28 +47,24 @@ public void sendSurveyLinkToEmail(
}
}

private String buildHtmlEmail(
String description,
String link
) {
return """
<html>
<body style="font-family: sans-serif;">
<p style="color: #212121;">%s</p>
<a href="%s" style="
display: inline-block;
margin-top: 10px;
padding: 10px 20px;
background-color: #E65787;
color: white;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
">
설문 참여하러 가기
</a>
</body>
</html>
""".formatted(description, link);
private String buildHtmlEmail(String description, String link) {
return String.format(
"<html>" +
"<head></head>" +
"<body style=\"font-family: sans-serif;\">" +
" <p>안녕하세요,</p>" +
" <p>%s</p>" +
" <p>아래 버튼을 클릭하여 설문에 참여해 주세요!</p>" +
" <p style=\"margin-top: 20px;\">" +
" <a href=\"%s\" " +
" style=\"display: inline-block; padding: 10px 20px; font-size: 16px; color: white; background-color: #E65787; text-decoration: none; border-radius: 5px; font-weight: bold;\">" +
" 설문 참여하기" +
" </a>" +
" </p>" +
" <p style=\"margin-top: 30px;\">감사합니다.<br/><b>Team HaRu 드림</b></p>" +
"</body>" +
"</html>",
description, link
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ private String generateInvitationEmailContentHtml(String invitedEmail, String in
" <p>아래 버튼을 클릭하여 워크스페이스에 합류해 주세요!</p>" +
" <p style=\"margin-top: 20px;\">" + // 버튼 스타일
" <a href=\"%s\" " +
" style=\"display: inline-block; padding: 10px 20px; font-size: 16px; color: white; background-color: #007bff; text-decoration: none; border-radius: 5px;\">" +
" style=\"display: inline-block; padding: 10px 20px; font-size: 16px; color: white; background-color: #E65787; text-decoration: none; border-radius: 5px;\">" +
" 초대 수락하기" +
" </a>" +
" </p>" +
" <p style=\"margin-top: 30px;\">감사합니다.<br/><b>HaRu 팀 드림</b></p>" +
" <p style=\"margin-top: 30px;\">감사합니다.<br/><b>Team HaRu 드림</b></p>" +
"</body>" +
"</html>",
invitedEmail, inviterName, workspaceName, invitationLink
Expand Down