How to send an email through SendGrid using REST API in salesforce
For sending the email through Sendgrid, we must have the Sendgrid Account’s Key and this Key will use in the Rest API to send the email.
Some parameters of the Rest API are:
API: The Sendgrid’s API for sending email is – https://api.sendgrid.com/v3/mail/send
Key: The key to the Sendgrid Account is like XX.XXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXX
Here is the example of JSON Request body of the email:
{
“personalizations”: [
{
“to”: [
{
“email”: “test@gmail.com”
}
],
“subject”: “Hello, World […]