Getting started

STEP 1

Create template

Log into EUmail and go to the templates section. Create a new template, and within that template, create a template version. Save the template version and make it active and then go back to the template list. Copy the template id using the copy icon as you will need this in step 3.

STEP 2

Create an API token

Go to the menu and select the API keys menu. Create a new API key and name it – for example “mykey”. You will now be shown a message saying that the key has been generated. Copy the key using the copy button and keep it safe as it is needed in step 3. You will not be able to see it again in EUmail, but you can always make a new one if you loose the key.

STEP 3

Make Request to Send Email

Using Curl ( https://en.wikipedia.org/wiki/CURL ) on the command line, you can make a single command to send a mail using EUmail. Remember to replace the template id and the API token with the real values from step 1 and 2.

When you have confirmed that you can send an email using your API key and template then you can start to implement this into your application.

curl --request POST --url https://send.mandaa.io/mail/v1/send
--header 'Authorization: Bearer [insert your API kode here]'
--header 'Content-Type: application/json'
--data '{
  "recipients":
    {
      "to":[{"email":"test@example.com"}]
    },
    "parameters": {
      "template":"[Insert template id here]",
      "subject":"Your own subject here"
    },
    "mergedata":{"name":"Jane Doe", "city":"Downtown"},
    "send_mode": "normal",
    "from": "from@example.com",
    "reply_to": "reply-to@example.com"
  }'