Send Mail Serverless

FREEMIUM
Durch Firebese | Aktualisiert vor 2 Monaten | Email
Popularität

9.5 / 10

Latenz

1,164ms

Service Level

60%

Health Check

N/A

Zurück zu allen Tutorials (1)

How to send email

Minimal post data :

If you want to test and send an email, use this as a minimal config in your post

{
“personalizations”: [
{
“to”: [
{
“email”: "to@example.com",
“name”: “Recipient name”
}
]
}
],
“from”: {
“email”: "sender@example.com",
“name”: “Sender name”
},
“subject”: “Example subject”,
“content”: [
{
“type”: “text/html”,
“value”: “Hello world Html
}
]
}

To be sure that your email gets into recipient inbox, add your domain dkim config

{
“personalizations”: [
{
“to”: [
{
“email”: "to@example.com",
“name”: “Recipient name”
}
],
“dkim_domain”: “example.com”,
“dkim_selector”: “default”,
“dkim_private_key”: “Private key Encoded in Base64”,
“dkim_identifier”: "dkim@example.com Sender Name"
}
],
“from”: {
“email”: "sender@example.com",
“name”: “Sender name”
},
“reply_to”: {
“email”: "replyto@example.com",
“name”: “GoConsole Support”
},
“subject”: “Example subject”,
“content”: [
{
“type”: “text/html”,
“value”: “Hello world Html
},
{
“type”: “text/plan”,
“value”: “Hello world Text”
}
],
“headers”: {
“List-Unsubscribe”: ", "
}
}

Send Mail Status Codes

Status: 202 - Success
Status: 400 - Bad Request
Status: 403 - The user does not have access to this feature
Status: 413 - Payload too large - The total message size should not exceed 20MB.
This includes the message itself, headers, and the combined size of any attachments.
Status: 500 - Internal Server Error