Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixed senders name in email while using resend email provider #4329

Closed

Conversation

mahimavarma
Copy link

What change does this PR introduce?

This PR will fix the name not being displayed in the email when the user is using Resend as an email provider.

Why was this change needed?

The change was to add the senderName before the from email address
Fixes:#3957

Other information (Screenshots)

image image

@@ -6,10 +6,11 @@ export class ResendHandler extends BaseHandler {
constructor() {
super('resend', ChannelTypeEnum.EMAIL);
}
buildProvider(credentials: ICredentials, from?: string) {
const config: { apiKey: string; from: string } = {
buildProvider(credentials: ICredentials, from?: string, senderName?: string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

credentials: ICredentials already includes the senderName.
So we don't need to pass senderName as an extra param. Also in the current implementation. In the mail.factory.ts file, only 2 params are being passed for all the providers.

@LetItRock
Copy link
Contributor

hi @mahimavarma! 👋 thanks for the contribution 🤝
We do value your time and effort, but we would like to give everyone a fair chance to contribute to our repository.
If the person who was assigned to the original ticket submits the PR we will prefer that one, instead of yours. But if the person won't be able to submit the PR or will be unresponsive we will revisit your PR.
For now, I'm closing it.

@LetItRock LetItRock closed this Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants