Skip to content

Commit c65e11b

Browse files
committed
feat(email): add subject to sendTransactionalEmail method
- Add 'subject' parameter to the sendTransactionalEmail method - Include 'subject' in the email data structure
1 parent ada0ec5 commit c65e11b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/email_sendgrid.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class EmailSendGrid implements EmailClient {
3232
Future<void> sendTransactionalEmail({
3333
required String senderEmail,
3434
required String recipientEmail,
35+
required String subject,
3536
required String templateId,
3637
required Map<String, dynamic> templateData,
3738
}) async {
@@ -46,6 +47,7 @@ class EmailSendGrid implements EmailClient {
4647
'to': [
4748
{'email': recipientEmail},
4849
],
50+
'subject': subject,
4951
'dynamic_template_data': templateData,
5052
},
5153
],

0 commit comments

Comments
 (0)