Email / Send an email
Send an email
Send one message, plain text or HTML, to one or more recipients. The full reference, code in ten languages and the live console open once you have an active API key.
POSThttps://odotservices.com.ng/api/send-email
Body parameters
tostring or arrayrequired- Recipient address, or a list of addresses.
subjectstringrequired- The subject line.
html_bodystring- HTML body. Send html_body or text_body.
text_bodystring- Plain-text body.
from_emailstring- An address you own. Defaults to your sending identity.
from_namestring- Display name for the sender.
curl -X POST "https://odotservices.com.ng/api/send-email" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"to": "customer@example.com",
"subject": "Your order is confirmed",
"html_body": "<p>Thanks!</p>"
}'
