View as Markdown
SARE icon

SARE ACTION

Send Transactional Email

Send a transactional email. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's SARE account once, then configure and run Send Transactional Email from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "sare-send-email",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    sare: { authProvisionId: "apn_xxxxxxx" },
    email: "Email",
    subject: "Subject",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Send Transactional Email inputs
Property Type Description
email Email string
The email address of the subscriber.
Required
subject Subject string
The subject of the transactional email.
Required
from From string
The sender email address.
Required
newsletterType Newsletter Type string
The type of the newsletter you want to send.
Optional
newsletter Newsletter integer
Newsletter ID in the system.
Optional Dynamic
html HTML string
Message content in html format.
Optional
txt TXT string
Message content in text format.
Optional
encoding Encoding string
Coding of the sent newsletter. The coding must be consistent with those available in the system.
Optional
replyto Reply To string
Reply-To field for shipping. The value should be a syntactically valid email address.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
sare-send-email
Version
0.0.2
App
SARE
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes