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)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "mailjet-send-message",
"configured_props": {
"mailjet": { "authProvisionId": "apn_xxxxxxx" },
"fromEmail": "From Email",
"fromName": "From Name"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "mailjet",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "mailjet-send-message",
arguments: {
fromEmail: "From Email",
fromName: "From Name",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| 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
- Source
- View on GitHub ↗