refactor(email): replace Booklore References In Email with Grimmory (#434)
This commit is contained in:
@@ -95,7 +95,7 @@ public class SendEmailV2Service {
|
||||
MimeMessageHelper helper = new MimeMessageHelper(message, true);
|
||||
helper.setFrom(StringUtils.firstNonEmpty(emailProvider.getFromAddress(), emailProvider.getUsername()));
|
||||
helper.setTo(recipientEmail);
|
||||
helper.setSubject("Your Book from Booklore: " + book.getMetadata().getTitle());
|
||||
helper.setSubject("Your Book from Grimmory: " + book.getMetadata().getTitle());
|
||||
helper.setText(generateEmailBody(book.getMetadata().getTitle()));
|
||||
File bookFile = FileUtils.getBookFullPath(book, bookFileEntity).toFile();
|
||||
helper.addAttachment(bookFile.getName(), bookFile);
|
||||
@@ -187,9 +187,9 @@ public class SendEmailV2Service {
|
||||
return String.format("""
|
||||
Hello,
|
||||
|
||||
You have received a book from Booklore. Please find the attached file titled '%s' for your reading pleasure.
|
||||
You have received a book from Grimmory. Please find the attached file titled '%s' for your reading pleasure.
|
||||
|
||||
Thank you for using Booklore! Hope you enjoy your book.
|
||||
Thank you for using Grimmory! Hope you enjoy your book.
|
||||
""", bookTitle);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user