Integrations#

Welcome to the MailTrigger Integrations section! This is where MailTrigger comes alive — sending emails, pinging your Telegram group, dropping alerts in Slack, or even replying to users automatically.

Note

Each Action is what MailTrigger does when your rule matches an email. Use them to build powerful automations. To better understand how actions work, see the Actions – What should happen next? section.

For each action, you’ll learn:

  • What it does

  • How to configure it (parameters)

Chat & Messaging Notifications#

Telegram Action#

Telegram icon Send real-time messages via Telegram Bot.

Parameters:

  • botToken – Bot token from BotFather

  • chatId – Chat or group ID

  • body – Message (default: email body)

  • title – Title (default: email subject)

Note

To obtain botToken and chatId, see: Telegram integration guide and Chat ID instructions

Discord Action#

icon Send rich notifications to Discord via webhook.

Parameters:

  • webhookId – Discord webhook ID

  • webhookToken – Discord webhook token

  • botName (optional) – Bot display name

  • body – Content

  • title – Title

Note

To obtain webhookId and webhookToken, see: Discord integration guide

Slack Action#

icon Post messages to a Slack channel via webhook or OAuth.

Parameters:

  • webhookUrl (optional) – Incoming Webhook URL

  • oAuthToken (optional) – Slack bot token

  • channels – Target channels (e.g., #alerts)

  • body – Message

  • title – Subject

Note

To obtain webhookUrl, oAuthToken, and channels, see: Slack integration guide

LINE Action#

icon Push messages to LINE users using your official LINE channel.

Parameters:

  • token – Channel access token

  • userId – LINE user ID(s)

  • body – Message

  • title – Subject

Note

To obtain token and userId, see: LINE integration guide

Microsoft Teams Action#

icon Send notifications directly to Microsoft Teams via webhook.

Parameters:

  • webhookUrl – Full Teams webhook URL

  • body – Message

  • title – Subject

Note

To obtain webhookUrl, see: Microsoft Teams guide

WhatsApp Action#

icon Send WhatsApp messages using Meta’s WhatsApp Cloud API.

Parameters:

  • token – Meta access token

  • from – From Phone ID (not a number)

  • target – Target WhatsApp user

  • template – WhatsApp template name

  • body – Message

  • title – Subject

Note

To obtain token, from, target, and template, see: WhatsApp integration guide

Core Email Actions#

SMTP Action#

icon Send emails using an external SMTP provider.

Parameters:

  • smtp_server – SMTP host (e.g., smtp.gmail.com)

  • smtp_port – Port (commonly 587 or 465)

  • smtp_tls – Use TLS (true/false)

  • smtp_username – SMTP login

  • smtp_password – SMTP password or app-specific password

  • smtp_email (optional) – Sender email if different from login

  • subject (optional) – Override email subject

  • body (optional) – Override email body

Forward Action#

icon Repackages and forwards the email to another recipient.

Note

SPF: Add a:smtp.mailtrigger.app to your domain’s SPF record.

DKIM: Add the DKIM public key (provided in MailTrigger) to your domain’s DNS to allow receiving servers to verify your messages.

Parameters:

  • receivers – Comma-separated recipient addresses

  • timeout – Connection timeout (default: 30s)

  • subject (optional) – Override email subject

  • body (optional) – Override email body

AutoRespond Action#

icon Automatically replies to the sender of a received email.

Parameters:

  • subject – Subject of reply

  • body – Content of reply

  • smtp_server – SMTP host

  • smtp_port – SMTP port

  • smtp_tls – Use TLS

  • smtp_username – SMTP login

  • smtp_password – SMTP password

Relay Action#

icon Send email using MailTrigger’s built-in SMTP relay.

Note

SPF: Add a:smtp.mailtrigger.app to your domain’s SPF record.

DKIM: Add the DKIM public key (provided in MailTrigger) to your domain’s DNS to allow receiving servers to verify your messages.

Parameters:

  • timeout – SMTP connection timeout (default: 30s)

  • subject (optional) – Override email subject

  • body (optional) – Override email body

API Integration#

API (Webhook) Action#

icon Trigger an external API with mail data as payload.

Parameters:

  • method – HTTP verb (GET, POST, etc.)

  • webhook_url – Target endpoint

  • headers – JSON of headers

  • data – JSON payload

  • params – URL parameters

  • timeout – Timeout in seconds (default: 10)

Automation & Intelligence#

LLM Action#

icon Send the email to a large language model (LLM) for smart decisions.

Parameters:

  • prompt – Prompt text for the model

  • max_retry – Retry attempts (default: 10)

  • temperature – Creativity (default: 1.0)

JavaScript Action#

icon Run JavaScript to analyze or transform mail content.

Parameters:

  • jsCode – JavaScript returning dict like { attach: true/false, ... }

WASM Action#

icon Run a WebAssembly binary to fully customize mail behavior.

Parameters:

  • wasm_parameter – JSON object passed to WASM runtime


Want to add your own action? Reach out to us or check our developer guide!