Send or validate transactional email through MailChannels.
A tool plugin for transactional email in workflows and agents. Installation, provider credentials and workflow execution have been tested on local Dify 1.17.1 with a synthetic HTTPS MailChannels mock. Editing and running an existing workflow through the browser also passed. Native Community Edition role, credential visibility/use and workspace switching checks also passed. From-scratch editor authoring, model-driven Agent, Cloud/Enterprise permissions, real provider validation and Marketplace review remain outstanding.
Configure a MailChannels API key, authorized sender, comma-separated exact recipient allowlist (up to 100 addresses), and mode. Default mode validates without sending. Saving credentials always calls with a synthetic message from/to the configured sender, even in send mode. This transmits the sender to MailChannels and checks the key and sender without requesting delivery.
Use Send or validate email with a recipient, subject, plain-text body and optional HTML. Only provider configuration can change key, sender, recipient permissions and mode. Use separate configurations for separate tenants. Configure Domain Lockdown/DKIM as documented at https://docs.mailchannels.com/email-api/overview. MailChannels requires an account and has separate service charges.
Results: , , , or . Accepted is provider handoff, not inbox delivery. No automatic retries are configured. Workflow retry, agent repetition or resumed execution can send twice: this plugin has no durable idempotency. Reconcile unknown outcomes before retrying and enforce application approval/authorization before sending. Attachments, arbitrary headers, custom endpoints and URL downloads are not exposed.
API keys stay in provider credentials. The plugin sends email content only to api.mailchannels.net over HTTPS. It does not return rendered MIME or raw provider errors. Dify may retain workflow inputs/outputs; configure access controls and retention. See PRIVACY.md.
Use Python 3.12; install requirements.txt plus pytest and responses, then run . Tests intercept HTTP and require no credentials. Package only runtime files with the official Dify CLI. Exclude tests, environments, caches and secrets. Install in an isolated current Dify instance and test workflow/agent behavior before submission. SDK tests are not native installation evidence.
Source: https://github.com/mailchannels/dify-mailchannels
This project is supported by the MailChannels team on a best-effort basis. The best way to get support is to file an issue on GitHub: https://github.com/mailchannels/dify-mailchannels/issues
If you are a MailChannels customer and have a problem with the operation of the MailChannels service, you can get support at https://support.mailchannels.com/
With the official CLI on PATH, run . The script stages only runtime files. For project support, see the Support section. The proposed Marketplace publisher namespace still needs company registration/ownership; no Marketplace submission has occurred. The manifest declares Dify 1.17.1 as the oldest tested supported version. Older versions have not been validated.
The archive also has serverless-runtime protocol tests. They extract the package into a temporary directory, start its actual entrypoint and provider/tool registration, and call the Dify SDK HTTP runtime. Test-only HTTP interception supplies synthetic MailChannels responses. Run with external networking disabled:
These seven protocol scenarios cover credential validation, send/dry-run output, recipient restrictions, injected configuration rejection and uncertain outcomes. They do not test a Dify workspace's editor, daemon upload/installation, encrypted credential storage or Marketplace ownership. Separate native installation/workflow/lifecycle checks are recorded in validation scope; these protocol tests alone do not establish those results.
Remove each saved MailChannels credential from Dify's provider settings before uninstalling the plugin. On Dify 1.17.1, uninstalling the plugin alone left the tool credential record behind; its option concerns model-provider credentials. Explicitly deleting the tool credential removed its stored record and prevented an existing workflow from making an API request. Uninstalling afterward removed the plugin without leaving tool credential records.
If already uninstalled, the tested recovery is to reinstall the same trusted plugin, delete its saved credentials, then uninstall again. Review workflows referencing that credential: they will fail until deliberately reconfigured. Deleting Dify's saved credential does not revoke the API key at MailChannels. Revoke the dedicated key through MailChannels account management when it is no longer needed; do not revoke a shared key used by other applications.
This lifecycle was tested with synthetic credentials against the native Dify workspace API and checked against the local credential table. It is not a guarantee for every Dify release or a substitute for your account's key-management policy.
Transport boundary in candidate 0.1.1: the plugin supplies its own SDK-compatible Requests transport, restricted to the fixed POST send endpoint with redirects disabled. A response is capped at 2 MiB locally; non-success bodies are discarded. The configured 30-second timeout applies to connection/read inactivity, not a strict wall-clock deadline. Streamed responses and enclosing workflow time limits still require deployment review. The exact 0.1.1 archive tested on local Dify 1.17.1 passed native installation/workflow/lifecycle acceptance; see validation scope for the source commit, archive hash and limits. Rebuild and revalidate the final reviewed archive before Marketplace submission.
Run for real local socket
checks of delayed headers, stalled bodies and completed trickled JSON. The tests
assert the helper requests 30 seconds, then shorten inactivity to one second only
inside the test factory. Each case runs in a bounded fresh interpreter to avoid
Dify's gevent patches, uses synthetic data and routes the guarded destination to
an ephemeral loopback server. They check uncertain outcomes, one POST, output
redaction and resource cleanup. Trickle completion beyond one second demonstrates
inactivity semantics; it does not establish a strict request or workflow deadline.
Native workspace-isolation follow-up used two independent owners/workspaces with
this same 0.1.1 archive. Each could run its own workflow, while foreign workflow
read/run and credential update/delete attempts were denied. A workflow referencing
the other workspace's credential ID failed without a mock request, even when both
workspaces had their own credentials. This is a specific owner/tenant boundary
check, not full role, sharing, enterprise or Cloud isolation certification. See
validation scope.
Native role acceptance is opt-in and uses isolated local containers with synthetic HTTPS.
See the fixture instructions for prerequisites and commands,
and native validation scope for observed behavior and limits.
Last checked 11/04/2026 01:25 AM · version 0.1.1