From 865ddab10fdbdcba724544eac1cfa8f3c8d8363c Mon Sep 17 00:00:00 2001 From: Pawan Jain Date: Thu, 11 Jan 2024 11:50:59 +0530 Subject: [PATCH] fix: add options in resend sendername --- providers/resend/src/lib/resend.provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/resend/src/lib/resend.provider.ts b/providers/resend/src/lib/resend.provider.ts index 49f4fed42e2..5f3cf57c11f 100644 --- a/providers/resend/src/lib/resend.provider.ts +++ b/providers/resend/src/lib/resend.provider.ts @@ -26,7 +26,7 @@ export class ResendEmailProvider implements IEmailProvider { async sendMessage( options: IEmailOptions ): Promise { - const senderName = this.config?.senderName; + const senderName = options.senderName || this.config?.senderName; const fromAddress = options.from || this.config.from; const response: any = await this.resendClient.sendEmail({