I have setup and account on SendGrid. I have got the API key and Node.js methods. I am creating an web app with React js. I want to send emails through SendGrid. I am unable to find any solution. Please help me with my question with an example.
Its not possible with react as it is a frontEnd library, if you try to implement with react you will get these errors
---> Refused to set unsafe header "User-Agent"
If you need to set those headers then you'll need to make the request from your server and not your visitor's browser.
So this is not possible from react and you will need to use some backend or firebase for it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With