How to send transactional emails

You can easily send transactional emails such as user notifications, order confirmations etc, using MoonMail GraphQL API.

If you don't know how to do a mutation, please check GraphQL API section first.

mutation {
sendEmail(
input: {
HtmlBody: "Your order is confirmed"
Subject: "Order confirmation"
FromAddress: "hi@mydomain.com"
Contacts: {Address: "example@email.com"}
}
) {
DeliveryStatus
MessageId
}
}