Email MarketingVia webhook Encrypted at Rest

Wix Automations + Mailgun Integration

Connect Wix and Wix Studio forms to Mailgun, without Zapier.

Trigger a Mailgun email when a Wix form is submitted, through a webhook handled by a Make or Zapier scenario or your own server.

How delivery works: FormWix sends each submission as JSON to a webhook URL you provide, such as an incoming webhook in Mailgun, a Google Apps Script web app, or a Make, Zapier or n8n scenario that writes to Mailgun. There is no one-click Mailgun sign-in yet.

Step-by-step guide: How to Connect Wix Forms to Mailgun
Submission Payload Specification
POST /v1/submissions • 200 OK

When a visitor submits a Wix or Wix Studio form, FormWix validates the input and sends this JSON payload to the webhook URL you configure for Mailgun:

{
  "event": "form.submission",
  "formId": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b8c9a01",
  "formName": "Contact form",
  "submissionId": "9b2e4f7a-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
  "submittedAt": "2026-10-01T08:00:00.000Z",
  "data": {
    "name": "Alex Rivera",
    "email": "alex@example.com",
    "phone": "+1 555 234 5678",
    "message": "Hi, I would like a quote."
  },
  "files": [],
  "meta": {
    "ip": "203.0.113.7",
    "userAgent": "Mozilla/5.0",
    "referrer": "https://example-agency.com/contact"
  }
}

Set Up Wix Automations to Mailgun in 3 Steps

01

Create a form endpoint in FormWix

Sign up free, create a form in your FormWix dashboard and copy its endpoint URL.

02

Send Wix form submissions to FormWix

In your Wix dashboard, open Automations and create a new automation. Choose the trigger "Form submitted" for your form, add the webhook action ("Send via webhook" or "Send HTTP request", depending on your editor), paste the FormWix URL and activate it. Wix Studio custom forms can use the Velo snippet below instead.

03

Point FormWix at Mailgun

In FormWix, open Integrations and paste a webhook URL that writes to Mailgun: an incoming webhook from Mailgun if it offers one, or a Make, Zapier, n8n or Google Apps Script webhook. Then click Send Test Payload.

What Teams Use Mailgun For

Common uses once your webhook writes into Mailgun. The mapping to Mailgun fields happens in the tool that receives the webhook.

Email sendingTemplate support

Velo Snippet for Wix Studio Custom Forms

Copy this lightweight snippet into your Wix Studio page code to stream submissions natively without embedding external iframes:

import { fetch } from 'wix-fetch';

$w.onReady(function () {
  $w('#submitButton').onClick(async () => {
    // 1. Prepare form submission payload
    const payload = {
      formId: 'YOUR_FORM_ID', // Replace with your Form ID from FormWix Dashboard
      data: {
        email: $w('#emailInput').value,
        name: $w('#nameInput').value,
        notes: $w('#notesInput').value
      }
    };

    // 2. Send to your FormWix endpoint
    const res = await fetch('https://formwix.com/api/v1/submissions', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify(payload)
    });

    if (res.ok) {
      $w('#successState').expand();
      $w('#formContainer').collapse();
    }
  });
});

Related Wix & Wix Studio Connectors

Explore other high-performance integrations in Email Marketing

View all 100+

Ready to test Mailgun?

Start in our free developer sandbox. No credit card required.

Launch Sandbox