---
title: "Connect SvelteKit forms to email"
canonical: "https://glueforms.com/docs/connect-sveltekit"
language: "en"
description: "Connect a SvelteKit contact page to GlueForms with an external HTML POST and receive messages by email."
---

# Connect SvelteKit forms to email

Connect a SvelteKit contact page directly to GlueForms. An external HTML POST works without a SvelteKit server action for this form.

## Connect the form

1. Copy your receiving URL from [Forms](https://glueforms.com/app/forms), or select your form above.
2. Create `src/routes/contact/+page.svelte`. Its location defines the `/contact` route.
3. Add the form below to the page. Keep the destination as the full receiving URL rather than a relative SvelteKit action.

```html
<svelte:head>
  <title>Contact us</title>
</svelte:head>

<h1>Contact us</h1>

<form action="YOUR_FORM_URL" method="POST">
  <label>
    Name
    <input name="name" autocomplete="name" />
  </label>
  <label>
    Email
    <input name="email" type="email" autocomplete="email" required />
  </label>
  <label>
    Message
    <textarea name="message" rows="4" required></textarea>
  </label>
  <button type="submit">Send message</button>
</form>
```

Do not add `use:enhance` to this external form. SvelteKit’s helper expects its own server actions and action-response format. For an inline confirmation, handle the browser request yourself.

A native submission opens the [thank-you page](https://glueforms.com/docs/thank-you-page) or your saved [redirect](https://glueforms.com/docs/redirects). Use [JavaScript](https://glueforms.com/docs/javascript) for confirmation on your own page.

Publish the page, submit a message and check its saved fields and email notification in GlueForms.

Official documentation: [SvelteKit routing](https://svelte.dev/docs/kit/routing), [SvelteKit form actions](https://svelte.dev/docs/kit/form-actions#Progressive-enhancement-use:enhance).
