# Send Mailtarget Email to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mailtarget-email",
    "name": "Mailtarget Email",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/masasdani/mailtarget-email",
    "canonicalUrl": "https://clawhub.ai/masasdani/mailtarget-email",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/mailtarget-email",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mailtarget-email",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/api.md",
      "references/getting-started.html",
      "references/getting-started.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "mailtarget-email",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T07:40:33.081Z",
      "expiresAt": "2026-05-12T07:40:33.081Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mailtarget-email",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mailtarget-email",
        "contentDisposition": "attachment; filename=\"mailtarget-email-1.2.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "mailtarget-email"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/mailtarget-email"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mailtarget-email",
    "downloadUrl": "https://openagent3.xyz/downloads/mailtarget-email",
    "agentUrl": "https://openagent3.xyz/skills/mailtarget-email/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mailtarget-email/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mailtarget-email/agent.md"
  }
}
```
## Documentation

### Mailtarget Email

Send emails and manage email infrastructure via the Mailtarget API.

### Setup

Set the MAILTARGET_API_KEY environment variable with your Mailtarget API key.

Get your API key from the Mailtarget dashboard → Settings → API Keys.

### Sending Email

Use curl or any HTTP client. All requests go to https://transmission.mailtarget.co/v1 with Authorization: Bearer $MAILTARGET_API_KEY.

### Simple send

curl -X POST https://transmission.mailtarget.co/v1/layang/transmissions \\
  -H "Authorization: Bearer $MAILTARGET_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "to": [{"email": "recipient@example.com", "name": "Recipient"}],
    "from": {"email": "noreply@yourdomain.com", "name": "Your App"},
    "subject": "Hello from Mailtarget",
    "bodyHtml": "<h1>Hello!</h1><p>This is a test email.</p>",
    "bodyText": "Hello! This is a test email."
  }'

A successful response returns {"message": "Transmission received", "transmissionId": "..."}.

### Template-based send

Use templateId with substitutionData instead of bodyHtml/bodyText:

{
  "to": [{"email": "user@example.com", "name": "User"}],
  "from": {"email": "noreply@yourdomain.com", "name": "Your App"},
  "subject": "Welcome, {{name}}!",
  "templateId": "welcome-template",
  "substitutionData": {"name": "User", "company": "Acme"}
}

### Tracking options

Control click and open tracking per transmission:

{
  "optionsAttributes": {
    "clickTracking": true,
    "openTracking": true,
    "transactional": true
  }
}

Set transactional: true for transactional emails (password resets, receipts) to bypass unsubscribe preferences.

### Attachments

Include base64-encoded attachments:

{
  "attachments": [{
    "filename": "report.pdf",
    "mimeType": "application/pdf",
    "value": "<base64-encoded-content>"
  }]
}

### Managing Templates

List: GET /template?page=1&size=10&search=keyword
Create: POST /template with {"id": "slug", "name": "Display Name", "html": "<html>..."}

### Managing Sending Domains

List: GET /domain/sending
Create: POST /domain/sending with {"domain": "example.com"}
Verify: PUT /domain/sending/{id}/verify-txt
Check SPF: GET /domain/sending/{id}/spf-suggestion

### Autonomous Domain Setup (with cloudflare-dns skill)

When paired with the cloudflare-dns skill, the agent can set up a sending domain end-to-end with zero manual DNS editing:

Create sending domain: POST /domain/sending with {"domain": "example.com"}
Read required DNS records from the response: spfHostname, spfValue, dkimHostname, dkimValue, cnameHostname, cnameValue
Add SPF TXT record in Cloudflare using spfHostname and spfValue
Add DKIM TXT record in Cloudflare using dkimHostname and dkimValue
Add CNAME record in Cloudflare using cnameHostname and cnameValue (set proxied: false)
Verify domain: PUT /domain/sending/{id}/verify-txt
Confirm status via GET /domain/sending/{id} — check spfVerified, dkimVerified, cnameVerified

Install the companion skill: clawhub install cloudflare-dns

### Getting Started

New to Mailtarget + OpenClaw? See references/getting-started.md for a 5-minute setup guide.

### Full API Reference

See references/api.md for complete endpoint documentation including API key management, sub-accounts, and permissions.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: masasdani
- Version: 1.2.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-05T07:40:33.081Z
- Expires at: 2026-05-12T07:40:33.081Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/mailtarget-email)
- [Send to Agent page](https://openagent3.xyz/skills/mailtarget-email/agent)
- [JSON manifest](https://openagent3.xyz/skills/mailtarget-email/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/mailtarget-email/agent.md)
- [Download page](https://openagent3.xyz/downloads/mailtarget-email)