Embeddable

Send widget emails through Mailgun

Connect your Mailgun account so the emails your widget sends for each response go out from your own domain through Mailgun.

3 min readPublished by Daniel Sternlicht on Nov 22, 2026, 10:57 AM UTCUpdated Nov 22, 2026

Connect Mailgun when you want the emails your widget sends to come from your own domain, through your own Mailgun account. It can email you each new response, email the person who filled in the form, or both.

You don't need Mailgun for email alerts. Embeddable sends them for you with no setup. Use Mailgun when you want the email to come from your own address.

Before you start

You need two things from Mailgun: an API key and your sending domain.

  1. In Mailgun, click your account name in the top right and choose API Security. Click Add new key and copy the key. Treat it like a password.
  2. In the left menu, under Sending, click Domains and copy the domain you send from, like mg.yourbusiness.com. It needs to be verified in Mailgun.

Mailgun accounts on the EU region can't be connected at the moment.

Connect it

Mailgun needs both the key and the domain, so connect it from Connect apps. The connection card in the AI chat has room for the key only, and Mailgun won't send without the domain.

If you already connected Mailgun from the chat, disconnect it first, using the trash icon on the card or Disconnect in Connect apps. Then follow these steps.

  1. Open your widget in the editor.
  2. Click More, then Connect apps.
  3. Find Mailgun and click Connect.
  4. Click Continue. If you see Which account? instead, choose Add another account.
  5. Give the connection a name in Name (only you see this). Paste your key into API key and your domain into Domain.
  6. Click Save and continue, make sure the new account is selected under Which account?, and click Connect.

Set up the email

  1. Still in Connect apps, open Send email to myself on event and fill in:
    • To: the address that should get each response.
    • From: an address on your Mailgun domain, like [email protected].
    • Subject: the subject line.
    • Html or Text: the message. To include an answer from the form, put the field's name in double curly brackets, like {{name}} or {{email}}. If you're not sure of the field names, ask the AI chat.
  2. Click Update.

To also send a copy to the person who filled in the form, turn on Send email to user on event and fill in its From, Subject and message the same way. It goes to the email address they typed in the form.

What happens next

Each new response sends the email through your Mailgun account. When someone fills in the form, their email address is set as the reply-to on the email you get, so you can reply to them directly. You can see sent emails in Mailgun's logs.

To test it, fill in the form on your live site, then check your inbox.

Remove it

  • Click More, then Connect apps, open Mailgun and click Disconnect.
  • Your key stays saved in your workspace so you can use it again. To stop all access, delete the key in Mailgun under API Security.

If no email arrives, check that the domain is verified in Mailgun and that the From address uses it. If it still doesn't work, email us through the contact page with the widget name and the time of your test.

Did this answer your question?

Your feedback helps us improve.