API to relay incoming HTTP call to send SMTP email
go run main.go
go build
Example Body
{
"personalizations": [
{
"to": [
{
"email": "[email protected]",
"name": "John Doe"
}
],
"subject": "Hello, World!"
}
],
"content": [
{
"type": "text/plain",
"value": "Heya!"
}
],
"from": {
"email": "[email protected]",
"name": "Sam Smith"
},
"reply_to": {
"email": "[email protected]",
"name": "Sam Smith"
}
}