File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ class EmailRepository {
25
25
///
26
26
/// - [senderEmail] : The email address of the sender.
27
27
/// - [recipientEmail] : The email address of the recipient.
28
+ /// - [subject] : The subject line of the email.
28
29
/// - [otpCode] : The One-Time Password to be sent.
29
30
/// - [templateId] : The ID of the transactional email template to use.
30
31
///
@@ -33,13 +34,15 @@ class EmailRepository {
33
34
Future <void > sendOtpEmail ({
34
35
required String senderEmail,
35
36
required String recipientEmail,
37
+ required String subject,
36
38
required String otpCode,
37
39
required String templateId,
38
40
}) async {
39
41
try {
40
42
await _emailClient.sendTransactionalEmail (
41
43
senderEmail: senderEmail,
42
44
recipientEmail: recipientEmail,
45
+ subject: subject,
43
46
templateId: templateId,
44
47
templateData: {'otp_code' : otpCode},
45
48
);
You can’t perform that action at this time.
0 commit comments