Skip to content

Tutorial: a contact form in 15 minutes

In this tutorial you put a contact form on your website. When a visitor submits it:

  1. you get the message in your inbox, and hitting Reply answers the visitor directly,
  2. the visitor gets a short “thanks, we’ve got your message” email,
  3. bots are stopped before they cost you anything.

There’s no server to write or host. The form talks to Frontmail straight from the browser with your public key; Frontmail checks where the request comes from, renders your template and sends the email through your own email account or provider.

The Frontmail dashboard overview with credits, sent emails and connected services

  • A Frontmail account. Sign up at app.frontmail.dev – the Free plan is enough. Confirm your email address, otherwise you can look around but not send.
  • An email account to send from. Any SMTP mailbox (Seznam, Zoho, your web host…), a Gmail or Outlook account, or an API provider such as Resend or Postmark.
  • A website where you can edit HTML. A static page is fine. For local testing, a dev server on localhost works too.
  • About 15 minutes.

Each step is short and ends with a link to the next one.

In a hurry? The Quickstart lists the same flow on one page, without the explanations.