---
title: "Send Transactional Email | Tajo"
description: "Send automated transactional emails through Brevo's API for customer loyalty engagement"
url: https://tajo.io/docs/messaging-api/transactional-emails/send-transactional-email/
markdown: https://tajo.io/docs/messaging-api/transactional-emails/send-transactional-email.md
lang: en-US
author: "Set Noa"
author_url: https://tajo.io/set-noa/
---

# Send Transactional Email

[Set Noa](https://tajo.io/set-noa/)

Send personalized transactional emails to your customers for loyalty program updates, order confirmations, reward notifications, and engagement campaigns.

## Quick Start

### Basic Email Request

```http
POST https://api.brevo.com/v3/smtp/email
Content-Type: application/json
api-key: YOUR_API_KEY

{
  "sender": {
    "name": "Tajo Loyalty",
    "email": "loyalty@yourdomain.com"
  },
  "to": [
    {
      "email": "customer@example.com",
      "name": "Customer Name"
    }
  ],
  "subject": "Your loyalty points have been updated!",
  "htmlContent": "<h1>Loyalty Update</h1><p>You earned 100 points from your recent purchase!</p>",
  "textContent": "Loyalty Update: You earned 100 points from your recent purchase!"
}
```

### Response

```json
{
  "messageId": "<202301021030.5678901234@domain.com>"
}
```

## Loyalty Program Use Cases

### Welcome Email for New Customers

```json
{
  "sender": {
    "name": "Tajo Loyalty Program",
    "email": "welcome@yourdomain.com"
  },
  "to": [
    {
      "email": "{{params.email}}",
      "name": "{{params.name}}"
    }
  ],
  "templateId": 1,
  "params": {
    "name": "John Doe",
    "email": "john@example.com",
    "welcomeBonus": "500",
    "loyaltyTier": "Bronze"
  }
}
```

### Points Balance Update

```json
{
  "subject": "Points Balance Update - {{params.pointsEarned}} Points Added",
  "params": {
    "customerName": "John Doe",
    "pointsEarned": "150",
    "totalPoints": "1,250",
    "transactionType": "Purchase",
    "orderNumber": "ORD-2024-001"
  }
}
```

### Reward Redemption Confirmation

```json
{
  "subject": "Reward Redeemed Successfully",
  "params": {
    "rewardName": "10% Off Next Purchase",
    "pointsUsed": "1000",
    "remainingPoints": "250",
    "couponCode": "SAVE10NOW",
    "expiryDate": "2024-03-15"
  }
}
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `sender` | Object | Yes | Sender information |
| `to` | Array | Yes | Recipient list (max 50) |
| `subject` | String | Yes | Email subject line |
| `htmlContent` | String | No | HTML email content |
| `textContent` | String | No | Text email content |
| `templateId` | Integer | No | Template ID (alternative to content) |
| `params` | Object | No | Template parameters |
| `headers` | Object | No | Custom headers |
| `attachment` | Array | No | File attachments |

## Advanced Features for Tajo

### Customer Segmentation

```json
{
  "to": [
    {
      "email": "premium@example.com",
      "name": "Premium Customer"
    }
  ],
  "params": {
    "loyaltyTier": "Premium",
    "personalizedOffers": [
      "Exclusive 20% off luxury items",
      "Free premium shipping"
    ]
  }
}
```

### A/B Testing Setup

```json
{
  "subject": "{{params.subjectVariant}}",
  "params": {
    "subjectVariant": "Limited Time: Double Points Weekend!",
    "contentVariant": "premium",
    "testGroup": "A"
  }
}
```

## Error Handling

```json
{
  "code": "invalid_parameter",
  "message": "Email address is invalid",
  "details": {
    "field": "to[0].email",
    "value": "invalid-email"
  }
}
```

## Next Steps

- Set up Email Templates
- Configure SMS Integration
- Track Email Events
- Loyalty Program Integration
