-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add replyTo field to SendGrid provider and Email type #2045
base: release
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import type { SendGridProvider, EmailSender } from "../types"; | |
|
||
// PRIVATE API | ||
export function initSendGridEmailSender( | ||
provider: SendGridProvider | ||
provider: SendGridProvider | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's remove this indent change to keep the changeset minimal. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whoops, formatters at work I guess. |
||
): EmailSender { | ||
SendGrid.setApiKey(provider.apiKey); | ||
|
||
|
@@ -18,6 +18,7 @@ export function initSendGridEmailSender( | |
email: fromField.email, | ||
name: fromField.name, | ||
}, | ||
replyTo: email.replyTo, | ||
to: email.to, | ||
subject: email.subject, | ||
text: email.text, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -384,6 +384,10 @@ The `send` method accepts an object with the following fields: | |
|
||
The email address of the sender. | ||
|
||
- `replyTo?: string` | ||
|
||
The email address to which the recipient can reply to. Only available for SendGrid provider. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you analyze the other providers to see if they also provide options for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I only checked the Mailgun provider which does not offer a |
||
|
||
- `to: string` <Required /> | ||
|
||
The recipient's email address. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see that your forked
main
branch is 33 commits behind themain
in our repo.We are now working on
0.14.0
and you'll see the entries in the Changelog once you sync your branch with the main repo.