Live Demo

App screenshot
9:41
S

SelfPing

iPhone

Hey there! Thanks for trying out SelfPing. If you submit this form, it will send me a text with the details you submit. This is a great way to receive instant notifications on your phone for any form submissions. Give it a try and see how it works!

Server Code

async function handleSubmit(formData: FormData) {
    "use server";
  
    const name = formData.get("name"); 
    const email = formData.get("email"); 
    const message = formData.get("message");
  
    const res = await fetch("https://www.selfping.com/api/sms", {
      method: "POST",
      body: JSON.stringify({
        message:
          name +
          " submitted your contact form with " +
          "email: " +
          email +
          " and message: " +
          message,
      }),
      headers: {
        "Content-Type": "application/json",
        Authorization: "Bearer " + process.env.SELFPING_API_KEY,
      },
    });