Email API Integration Guide with cURL
Minimum code that you need to integrate Mailazy with cURL
Prerequisites
You need to complete these given prerequisites, you can skip the step if you have already completed.
- Sign up for a Mailazy account.
- Complete Domain Authentication.
- Generate the Mailazy Access Key
Integrate Mailazy with cURL
Start Sending mail using the code provided below:
curl --location --request POST 'https://api.mailazy.com/v1/mail/send' \
--header 'X-Api-Key: <API KEY>' \
--header 'X-Api-Secret: <API SECRET>' \
--header 'Content-Type: application/json' \
--data-raw '{
"to": ["example@example.com"],
"from": "Sender <sender@example.com>",
"subject": "<Subject>",
"content": [
{
"type": "text/plain",
"value": "<Content>"
}
]
}'