forked from GDSC-CAU/PuangFilm-BE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request GDSC-CAU#30 from alsrudrl1220/feature/29
[feat] 이미지 완성 알림 이메일 발송 기능 구현 (GDSC-CAU#29)
- Loading branch information
Showing
10 changed files
with
120 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
|
||
@AllArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class ConstantUtil { | ||
|
||
public static final String USER_ID_KEY = "photo-request-user"; | ||
public static final String GDSC_CAU_EMAIL = "GDSC CAU <[email protected]>"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/gdsc/cau/puangbe/photo/dto/request/EmailInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package gdsc.cau.puangbe.photo.dto.request; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
public class EmailInfo { | ||
String email; | ||
String name; | ||
String photoUrl; | ||
String framePageUrl; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html lang="kr" xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>푸앙이 사진관 - 사진 생성 완료</title> | ||
</head> | ||
<body style="margin: 0; padding: 0; background-color: #f4f4f4; font-family: Arial, sans-serif; color: #333;"> | ||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width: 600px; margin: 0 auto; background: #fff; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1);"> | ||
<!-- Top Logo --> | ||
<tr> | ||
<td style="text-align: center; padding: 20px;"> | ||
<img src="https://via.placeholder.com/300x100?text=Top+Logo" alt="Top Logo" style="max-width: 300px; height: auto; display: block; margin: 0 auto;"> | ||
</td> | ||
</tr> | ||
|
||
<!-- Content --> | ||
<tr> | ||
<td style="padding: 20px; text-align: center;"> | ||
<p style="margin: 0 0 40px 0;">안녕하세요, <strong th:text="${userName}">[사용자 이름]</strong>님!</p> | ||
<p style="margin: 0 0 30px 0;">AI 프로필 사진이 성공적으로 생성되었어요😊</p> | ||
<p style="margin: 0 0 10px 0;">AI 프로필에 프레임을 적용해서</p> | ||
<p style="margin: 0 0 40px 0;">나만의 특별한 프로필을 만들어보세요✨</p> | ||
|
||
<!-- AI Photo --> | ||
<p style="margin: 0 0 30px 0;"> | ||
<img src="${photoUrl}" alt="AI 프로필 사진" style="max-width: 200px; border-radius: 8px; box-shadow: 0 0 5px rgba(0,0,0,0.2);"> | ||
</p> | ||
|
||
<!-- Button --> | ||
<p style="margin: 0 0 50px 0;"> | ||
<a href="#" th:href="@{${framePageUrl}}" style="display: inline-block; padding: 10px 20px; font-size: 16px; color: #fff; background-color: #007bff; text-decoration: none; border-radius: 5px;">프레임 적용해보기</a> | ||
</p> | ||
</td> | ||
</tr> | ||
|
||
<!-- Footer --> | ||
<tr> | ||
<td style="padding: 15px; text-align: center; font-size: 14px; color: #777;"> | ||
<p style="margin: 0;">GDSC CAU 푸앙이 사진관 드림</p> | ||
</td> | ||
</tr> | ||
|
||
<!-- Bottom Logo --> | ||
<tr> | ||
<td style="text-align: center; padding: 5px;"> | ||
<img src="https://via.placeholder.com/300x100?text=Bottom+Logo" alt="Bottom Logo" style="max-width: 300px; height: auto; display: block; margin: 0 auto;"> | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |