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 @@ -23,19 +23,22 @@ class HtEmailRepository {
23
23
/// constructs the required `templateData` and calls the generic
24
24
/// `sendTransactionalEmail` method on the injected [HtEmailClient] .
25
25
///
26
+ /// - [senderEmail] : The email address of the sender.
26
27
/// - [recipientEmail] : The email address of the recipient.
27
28
/// - [otpCode] : The One-Time Password to be sent.
28
29
/// - [templateId] : The ID of the transactional email template to use.
29
30
///
30
31
/// Throws [HtHttpException] subtypes on failure, as propagated from the
31
32
/// client.
32
33
Future <void > sendOtpEmail ({
34
+ required String senderEmail,
33
35
required String recipientEmail,
34
36
required String otpCode,
35
37
required String templateId,
36
38
}) async {
37
39
try {
38
40
await _emailClient.sendTransactionalEmail (
41
+ senderEmail: senderEmail,
39
42
recipientEmail: recipientEmail,
40
43
templateId: templateId,
41
44
templateData: {'otp_code' : otpCode},
You can’t perform that action at this time.
0 commit comments