Introduction

An overview of all of the capabilities of Mailazy


Welcome! This document is meant to be an overview of all of the capabilities of Mailazy and how you can best leverage those capabilities.

Ready? Let's dive in!

Sending Emails

Mailazy service can be accessed through the RESTful HTTP API without the need to install any libraries. You can send emails in JSON format, defining recipient, from addresses. from address has to match one of your verified domain.

Examples:

Sending mails using Mailazy API is extremely simple: as simple as performing an HTTP POST request to an API URL.

Sending a plain text message:

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" : ["john@example.com"],
        "from": "Sender <sender@example.com>",
        "subject": "Hello, World!",
        "content": [{
            "type": "text/plain",
            "value": "Hey! ....."
        }]
    }'