Sendgrid mail not working

Hi I am trying to send an email to a user after clicking on a button

This is my request but it is giving me a error 400 Bad Request

{
“from”: {
“email”: “support@example.com
},
“content”: [
“type”: “text/plain”
“value”: “Test”
],
“personalizations”: [
{
“to”: [
{
email: {{table.selectedRow.data.email}}
}
],
“subject”: “Test”,
}
],
}

Here is the API request

{
“request”: {
“url”: “https://api.sendgrid.com/v3/mail/send”,
“credentials”: “same-origin”,
“headers”: {
“Content-Type”: “application/json”,
“Authorization”: “—sanitized—”
},
“method”: “POST”,
“body”: “{\n “from”: {\n “email”: “support@example.com”\n },\n “content”: [\n \t"type”: “text/plain”\n “value”: “Test”\n ],\n “personalizations”: [\n {\n “to”: [\n {\n email: havboi@mailpoof.com\n }\n ],\n “subject”: “Test”,\n }\n ],\n}"
},
“response”: {
“data”: {
“errors”: [
{
“message”: “Bad Request”,
“field”: null,
“help”: null
}
]
},
“headers”: {
“access-control-allow-headers”: [
“Authorization”,
“Content-Type”,
“On-behalf-of”,
“x-sg-elas-acl”
],
“access-control-allow-methods”: “POST”,
“access-control-allow-origin”: “https://sendgrid.api-docs.io”,
“access-control-max-age”: “600”,
“connection”: “close”,
“content-length”: “63”,
“content-type”: “application/json”,
“date”: [
“Thu”,
“15 Apr 2021 06:30:12 GMT”
],
“server”: “nginx”,
“strict-transport-security”: “max-age=600; includeSubDomains”,
“x-no-cors-reason”: “https://sendgrid.com/docs/Classroom/Basics/API/cors.html
},
“status”: 400,
“statusText”: “Bad Request”,
“ok”: false,
“url”: “https://api.sendgrid.com/v3/mail/send
}
}

Hi @jibyoung!

Are you still blocked here? If so, would you mind writing into Support so we can better debug this with you?

support@retool.com or the "Chat with support" feature in the bottom right of your apps :blush: