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#

Parameters:
botToken
– Bot token from BotFatherchatId
– Chat or group IDbody
– 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#

Parameters:
webhookId
– Discord webhook IDwebhookToken
– Discord webhook tokenbotName
(optional) – Bot display namebody
– Contenttitle
– Title
Note
To obtain webhookId
and webhookToken
, see:
Discord integration guide
Slack Action#

Parameters:
webhookUrl
(optional) – Incoming Webhook URLoAuthToken
(optional) – Slack bot tokenchannels
– Target channels (e.g.,#alerts
)body
– Messagetitle
– Subject
Note
To obtain webhookUrl
, oAuthToken
, and channels
, see:
Slack integration guide
LINE Action#

Parameters:
token
– Channel access tokenuserId
– LINE user ID(s)body
– Messagetitle
– Subject
Note
To obtain token
and userId
, see:
LINE integration guide
Microsoft Teams Action#

Parameters:
webhookUrl
– Full Teams webhook URLbody
– Messagetitle
– Subject
Note
To obtain webhookUrl
, see:
Microsoft Teams guide
WhatsApp Action#

Parameters:
token
– Meta access tokenfrom
– From Phone ID (not a number)target
– Target WhatsApp usertemplate
– WhatsApp template namebody
– Messagetitle
– Subject
Note
To obtain token
, from
, target
, and template
, see:
WhatsApp integration guide
Core Email Actions#
SMTP Action#

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 loginsmtp_password
– SMTP password or app-specific passwordsmtp_email
(optional) – Sender email if different from loginsubject
(optional) – Override email subjectbody
(optional) – Override email body
Forward Action#

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 addressestimeout
– Connection timeout (default: 30s)subject
(optional) – Override email subjectbody
(optional) – Override email body
AutoRespond Action#

Parameters:
subject
– Subject of replybody
– Content of replysmtp_server
– SMTP hostsmtp_port
– SMTP portsmtp_tls
– Use TLSsmtp_username
– SMTP loginsmtp_password
– SMTP password
Relay Action#

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 subjectbody
(optional) – Override email body
API Integration#
API (Webhook) Action#

Parameters:
method
– HTTP verb (GET, POST, etc.)webhook_url
– Target endpointheaders
– JSON of headersdata
– JSON payloadparams
– URL parameterstimeout
– Timeout in seconds (default: 10)
Automation & Intelligence#
LLM Action#

Parameters:
prompt
– Prompt text for the modelmax_retry
– Retry attempts (default: 10)temperature
– Creativity (default: 1.0)
JavaScript Action#

Parameters:
jsCode
– JavaScript returning dict like{ attach: true/false, ... }
WASM Action#

Parameters:
wasm_parameter
– JSON object passed to WASM runtime
Want to add your own action? Reach out to us or check our developer guide!