I have made a sendgrid account and connected it with my Retool app.
The connection has been tested so that should be good.
Now I want to send a basic email.
In this email I have 3 values that are coming from an object.
Sender: {{CurrentUserEmail.value}}
Receiver: {{PaymentRequestOverview.selectedItem.Email}}
Payment amount: {{PaymentRequestOverview.selectedItem.PaidBill}}
How can I do this?
I have tried multiple sendgrid examples and uses the documentations from both Retool and SendGrid, but still I am missing some things.
The rest of the email will be pretty basic in terms of subject and body.
Also when I used the POST mail send operation I got this error.
{
"errors": [
{
"message": "Additional property body is not allowed.",
"field": "body",
"help": null
},
{
"message": "Invalid type. Expected: object, given: string.",
"field": "reply_to",
"help": "Authentication | Twilio"
},
{
"message": "Invalid type. Expected: object, given: string.",
"field": "from",
"help": "Authentication | Twilio"
},
{
"message": "Invalid type. Expected: object, given: string.",
"field": "personalizations.0.from",
"help": "Authentication | Twilio"
},
{
"message": "Invalid type. Expected: array, given: string.",
"field": "personalizations.0.to",
"help": "Authentication | Twilio"
}
]
}