I’m using const sgMail = require(‘@sendgrid/mail’); and utilizing sendgrid version 7.6.2. When I’m adding two email addresses in array and passing that into send() or sendMultiple() it’s throwing me error like this. here’s the section where I’m putting the multiple emails, here if I pass one email as in form of string the mail is getting triggered. Can anyone please
Tag: sendgrid
SendGrid client TypeScript Error: HttpMethod
I have: But my TypeScript language server gives me an error about sendgridRequest: Is there some way to resolve this? Answer method: ‘PUT’ in your object is being inferred as string, but it’s expecting specific strings like “PUT” | “GET” | “POST”. This because it has no specific type to try to match, and by default specific strings are just
sendGrid + firebase cloud functions: Email is not sending with Callable functions
I’m new to javascript and I’m trying to send email with the firebase callable functions. the idea is to send code to user email from a cloud function when called from the iOS app. But the thing is, functions can be deployed but I’m not sure what is wrong with my code as it is not sending the email. I
API Key does not start with “SG.” SendGrid
I am trying to set up SendGrid add-on in my Heroku NodeJS app. I created the API Key and set it as an environment variable. The whole API key looks something like: SG.actualValue.bbb_cccccc The first setup I did I set the whole key as as my SENDGRID_API_KEY and I got this error: API key does not start with SG. So,