-
Notifications
You must be signed in to change notification settings - Fork 780
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: require in TS at least 1 type of content for sending mail #1041
Conversation
Hello @childish-sambino, |
This has introduced a TS error when sending mails with just templateIds: const data = {
from: "someemail",
to: "somemail",
templateId: "some sendgrid templateId",
dynamic_template_data: {randonVariables: "something"},
}
sendgrid.send(data)
We dont require there to be a body or content as its using a template? Any ideas? |
🤦♂ Need more |
as @JClackett mentioned, template use case was not included. |
great, thanks! |
Fixes #978