Skip to content

Commit c0286de

Browse files
committed
feat(email): add subject parameter to sendOtpEmail method
- Include subject in sendOtpEmail method signature and documentation - Update _emailClient.sendTransactionalEmail call to include subject
1 parent 913c226 commit c0286de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/email_repository.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class EmailRepository {
2525
///
2626
/// - [senderEmail]: The email address of the sender.
2727
/// - [recipientEmail]: The email address of the recipient.
28+
/// - [subject]: The subject line of the email.
2829
/// - [otpCode]: The One-Time Password to be sent.
2930
/// - [templateId]: The ID of the transactional email template to use.
3031
///
@@ -33,13 +34,15 @@ class EmailRepository {
3334
Future<void> sendOtpEmail({
3435
required String senderEmail,
3536
required String recipientEmail,
37+
required String subject,
3638
required String otpCode,
3739
required String templateId,
3840
}) async {
3941
try {
4042
await _emailClient.sendTransactionalEmail(
4143
senderEmail: senderEmail,
4244
recipientEmail: recipientEmail,
45+
subject: subject,
4346
templateId: templateId,
4447
templateData: {'otp_code': otpCode},
4548
);

0 commit comments

Comments
 (0)