View as Markdown
Mailersend icon

Mailersend ACTION

Send Email From Template

This action sends a personalized e-mail to the specified recipient using templates. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Mailersend account once, then configure and run Send Email From Template 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: "mailersend-send-email-from-template",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    mailersend: { authProvisionId: "apn_xxxxxxx" },
    fromEmail: "From Email",
    fromName: "From Name",
  },
})

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 Email From Template inputs
Property Type Description
fromEmail From Email string
The 'From' email address used to deliver the message. This address should be a verified sender in your MailerSend account.
Required
fromName From Name string
A name or title associated with the sending email address.
Required
toEmail To Email string
The intended recipient's email address.
Required
toName To Name string
The intended recipient's name.
Optional
subject Subject string
The email subject.
Required
domainId Domain ID string
The id of a verified domain.
Required Dynamic
templateId Template ID string
The id of an email template.
Required Dynamic
substitutions Variables Substitutions object
Dynamic variables that should be replaced on the email. e.g: { "company": "MailerSend" }.
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
mailersend-send-email-from-template
Version
0.0.2
App
Mailersend
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes