-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy pathEmailService.java
More file actions
22 lines (14 loc) · 790 Bytes
/
EmailService.java
File metadata and controls
22 lines (14 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.webapp.bankingportal.service;
import java.util.concurrent.CompletableFuture;
import com.webapp.bankingportal.dto.UserResponse;
import org.springframework.scheduling.annotation.Async;
public interface EmailService {
@Async
public CompletableFuture<Void> sendEmail(String to, String subject, String text);
public String getLoginEmailTemplate(String name, String loginTime, String loginLocation);
public String getOtpLoginEmailTemplate(String name, String accountNumber, String otp);
public String getBankStatementEmailTemplate(String name, String statementText);
String getReconciliationReportTemplate(String user,
String introSentence,
String reportContent);
}