View as Markdown
Mailjet icon

Mailjet ACTION

Send Message

Send a message via Send API v3. Send API v3 is built mainly for speed, allowing you to send up to 100 messages in a single API call. See the docs here
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Mailjet account once, then configure and run Send Message 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: "mailjet-send-message",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    mailjet: { 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 Message inputs
Property Type Description
fromEmail From Email string
Specifies the sender email address.
Required
fromName From Name string
Sender name that will be displayed in the recipient's mailbox.
Optional
sender Sender boolean
When true, default sender email address will be used to send the message, while the From Email will be displayed in the recipient's inbox. In such cases, it is not necessary for the From Email to be verified. However, the information will be displayed in the inbox as From {from_email} via / sent on behalf of {sender_domain}.
Optional
to To string
The email address (and name, optionally) of the recipients. Acceptable formats are john@example.com or <john@example.com> or "John Doe" <john@example.com>. Can include multiple contacts, which should be separated by commas. Can be used together with Cc and Bcc.
Optional
cc Cc string
The email address (and name, optionally) of a recipient who is supposed to receive a carbon copy (cc) of this message. Used together with To and Bcc (optional). Acceptable formats are john@example.com or <john@example.com> or "John Doe" <john@example.com>. Can include multiple contacts, which should be separated by commas.
Optional
bcc Bcc string
The email address (and name, optionally) of a recipient who is supposed to receive a blind carbon copy (bcc) of this message. Use this when you do not want your other recipients to see that you are sending a copy of the message to this email address. Used together with To and Cc (optional). Acceptable formats are john@example.com or <john@example.com> or "John Doe" <john@example.com>. Can include multiple contacts, which should be separated by commas.
Optional
subject Subject string
The email subject line.
Optional
textPart Text Part string
Provides the Text part of the message. Mandatory, if the Html-part parameter is not specified.
Optional
htmlPart HTML Part string
Provides the HTML part of the message. Mandatory, if the Text-part parameter is not specified.
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
mailjet-send-message
Version
0.0.5
App
Mailjet
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes