Send Mail Serverless

免费增值
通过 Firebese | 已更新 לפני חודשיים | Email
人气

9.5 / 10

延迟

1,164ms

服务等级

60%

Health Check

N/A

返回全部教程 (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