View as Markdown
Mailersend icon

Mailersend ACTION

Send an Email

This action sends a personalized e-mail to the specified recipient. 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 an 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: "mailersend-send-email",
  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 an Email 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
text Text string
Email represented in a text (text/plain) format.
Required
html HTML string
Email represented in HTML (text/html) format, you can add variables such as {$company} to be replaced.
Required
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
Version
0.0.2
App
Mailersend
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes