Get contact form messages on Discord (no server needed)
By Maxime Branger · Published on
Why a webhook rather than an email
A contact message that lands in the channel where your team already talks gets read faster than one more email in a shared inbox. Discord and Slack can receive messages through a webhook: a secret URL that posts whatever it receives to a channel. AirMess calls this URL on every submission and formats the message the way it expects. No bot, no server, and you can still get an email as well.
Step 1: create the webhook on Discord
On Discord, open the settings of the channel that will receive the messages, then “Integrations” and “Webhooks”. Create a new webhook, give it a name (for example “Contact form”) and copy its URL, which starts with https://discord.com/api/webhooks/ . You need the “Manage Webhooks” permission on the server.
Treat this URL like a password: anyone who knows it can post to your channel. It never appears in your page; only AirMess knows it.
Step 2: create the form on AirMess
Create an AirMess account, then a new form. The “Recipients” field is optional: leave it empty if you only want Discord, or enter an address to also receive an email. In the “Security” tab, add your domain to the allowed origins.
Step 3: connect the webhook
In the form's “Webhooks” tab, paste the Discord URL, choose the “Discord” format and click “Add webhook”. Then click “Send a test”: a test message should appear in the channel. A form with no email recipient accepts submissions as soon as it has an active webhook.
Each submission arrives as a message with an embed showing the form name and one field per submitted value. Mentions are disabled: a visitor who writes @everyone in their message notifies no one.
Step 4: add the form to your page
The form is the same as for email: it sends the data to your AirMess form URL, which takes care of Discord.
<form action="https://airmess.fr/api/submit/YOUR_TOKEN" method="POST">
<label for="name">Name</label>
<input id="name" name="name" type="text" required>
<label for="email">Email</label>
<input id="email" name="email" type="email" required>
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" required></textarea>
<button type="submit">Send</button>
</form>To keep the visitor on the page after sending, follow the Contact form without page reload (fetch) tutorial: nothing changes on the webhook side.
Variant: a Slack channel
On Slack, create an app from api.slack.com/apps, turn on “Incoming Webhooks”, then click “Add New Webhook to Workspace” and pick the channel. Copy the URL, which starts with https://hooks.slack.com/services/ , and add it in AirMess with the “Slack” format. You can connect both Discord and Slack to the same form, up to five webhooks.
Troubleshooting
If Discord does not respond, AirMess retries twice (after 10 seconds, then after one minute). The form's delivery history shows the state of each webhook and lets you resend a failed submission. After 20 consecutive failures, for example if the webhook was deleted on Discord, it is disabled and you are notified by email. If the Discord URL no longer exists, create a new one, delete the old webhook in AirMess and add the new one; otherwise, just turn it back on.
A rejected submission (origin not allowed, CAPTCHA, missing required field) is never sent to Discord: if nothing arrives, check the delivery history first.
Going further: n8n, Make, Zapier or your own API
The “JSON” format sends the raw, signed submission to any HTTPS address: an n8n, Make or Zapier scenario can then add it to a spreadsheet or a CRM. The exact content and how to verify the signature are described in the documentation, “Webhooks” section.