Easily integrate your Magento 2 store with workflow automation platforms like n8n, Zapier, and many more using just one module. Send Magento 2 emails as JSON to webhooks and bridge your store to countless services such as MailChimp, Sendgrid, HubSpot, ActiveCampaign, CRM systems, and others without needing any additional backend plugins.
It's not another SMTP provider, it's a way to send e-commerce data to an automation tool to easily connect any app without extra coding and installing additional plugins to your Magento store. This module is not a replacement for your current email provider and does not change your SMTP settings. Although you can only use workflow n8n or Zapier to send emails and SMS, by default emails will be sent through your current email provider and workflow, but you can always change this.
- Real-time Email Dispatching: Send your Magento store emails and objects like Customer, Order & etc., as JSON payloads in real-time.
- Universal Webhook Integration: Easily connect to platforms like n8n, Zapier, and many others.
- Plug & Play: No need for additional backend plugins or integrations.
- Secure: Ensures that data is sent securely over HTTPS to the designated webhook. Supports Base Auth and API Auth.
composer require sysint/module-email-flow
Extract the files to your Magento installation's app/code directory. Run the following commands:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
The module will now be installed and ready for configuration.
Navigate to Stores > Configuration > Advanced > System > Email Flow Sending Settings
- Enable plugin
- Input your webhook URL.
- Sending mode. By default, mixed means that emails will be sent by SMTP + FLOW. You'll be able to set up your workflow and keep sending emails.
- Select authentication type: NONE, Base, API (
NONE by default
) - Debug: Yes/No (
No - by default
). Log filevar/log/debug.log
- Data Optimization Yes/No (
Yes - by default
) - Save the configuration.
Once configured, the module will automatically send emails as JSON payloads to the specified webhook URL in real-time. This data can then be used in your preferred workflow automation platform to trigger workflows, save data, and integrate with other services like Mailchimp, Sendgrid, HubSpot & etc.
When debugging is enabled, messages can be found in the log file var/log/debug.log
Example of the message:
[2023-10-20T07:51:34.110881+00:00] .DEBUG: {"message":"Workflow was started"} [] []
- N8N
- Zapier
- Magento Open Source/Adobe Commerce Cloud/B2B, versions:
- 2.4.6 - 2.4.6-p3
- 2.4.5 - 2.4.5-p5
- 2.4.4 - 2.4.4-p6
- PHP
- 7.3
- 7.4
- 8.1
- 8.2
For any issues, questions, or feedback, please open an issue on our GitHub repository
This module is licensed under the MIT License - see the LICENSE file for details