-
Notifications
You must be signed in to change notification settings - Fork 4
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 #174 from RossKWSang/feature/monthly-book-mail
[feat] 메일링 서비스 중지
- Loading branch information
Showing
4 changed files
with
6 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ | |
|
||
import com.kernel360.boogle.book.db.BookEntity; | ||
import com.kernel360.boogle.book.db.BookRepository; | ||
import lombok.AllArgsConstructor; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.stereotype.Component; | ||
|
||
|
@@ -56,10 +54,9 @@ protected PasswordAuthentication getPasswordAuthentication() { | |
Message message = new MimeMessage(session); | ||
message.setFrom(new InternetAddress(userEmail)); | ||
|
||
|
||
// 수신자 메일 목록을 아래에 작성 | ||
String[] recipientAddresses = { | ||
"[email protected]", | ||
"[email protected]" | ||
"[email protected]" | ||
}; | ||
|
||
InternetAddress[] recipientInternetAddresses = new InternetAddress[recipientAddresses.length]; | ||
|
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 |
---|---|---|
|
@@ -38,7 +38,10 @@ public Step monthlyMailingStep(Tasklet tasklet) { | |
@Bean | ||
public Tasklet tasklet() { | ||
return ((contribution, chunkContext) -> { | ||
mailForNewRelease.send(); | ||
// 메일링 서비스를 수행하시려면 다음의 코드를 삽입하세요. | ||
// mailForNewRelease.send(); | ||
// [email protected] 메일은 삭제됩니다. | ||
System.out.println("Spring Batch Job Done!"); | ||
return RepeatStatus.FINISHED; | ||
}); | ||
} | ||
|
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