senduler

Hugo

Hugo outputs static HTML — point your form action at Senduler.

Page template

{{/* layouts/contact/single.html */}}
<form action="{{ site.Params.senduler_endpoint }}" method="POST">
  <label>
    Email
    <input type="email" name="email" required>
  </label>
  <label>
    Message
    <textarea name="message" required></textarea>
  </label>
  <input type="text" name="_gotcha" hidden tabindex="-1" autocomplete="off">
  <button type="submit">Send</button>
</form>

In config.toml or hugo.toml:

[params]
  senduler_endpoint = "https://senduler.com/f/your-key"

Shortcode (optional)

{{/* layouts/shortcodes/senduler-form.html */}}
<form action="{{ .Get "endpoint" }}" method="POST">
  <input type="email" name="email" required>
  <textarea name="message" required></textarea>
  <input type="text" name="_gotcha" hidden>
  <button type="submit">Send</button>
</form>

Use in Markdown: {{</* senduler-form endpoint="https://senduler.com/f/your-key" */>}}

Set Redirect submit behaviour and your thank-you page URL in the dashboard.