Skip to content

Commit c3de82a

Browse files
committed
feat(email): add dynamic subject line for OTP emails
- Use template data for OTP code as the email subject - Improve email personalization and user experience
1 parent edb94e0 commit c3de82a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/email_sendgrid.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class EmailSendGrid implements EmailClient {
5050
},
5151
],
5252
'from': {'email': senderEmail},
53+
'subject': templateData['otp_code'],
5354
'template_id': templateId,
5455
};
5556

0 commit comments

Comments
 (0)