Profile Requirements

To deliver a message to a recipient over Mailjet, Courier must be provided the recipient's email address. This value should be included in the recipient profile as email.

// Recipient Profile
{
  "email": "[email protected]"
}

Override

You can use a provider override to replace what we send to Mailjet's Send API. For example, you can add an attachment to your request:

{
  "event": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
  "recipient": "abc123",
  "profile": {
    "email": "[email protected]",
  },
  "override": {
    "mailjet": {
      "body": {
        "Attachments": [
          {
            "ContentType": "text/plain",
            "Filename": "test.txt",
            "Base64Content": "VGhpcyBpcyB5b3VyIGF0dGFjaGVkIGZpbGUhISEK"
          }
        ]
      }
    }
  }
}

Everything inside of override.mailjet will replace what we send to Mailjet's Send API. You can see all the available options by visiting Mailjet API docs.


Did this page help you?