Skip to content
Discussion options

You must be logged in to vote

Hey! I built a similar contact form for my portfolio without using any third-party services like Formspree.

I used Google Apps Script to handle submissions and send emails directly to my Gmail. Here's how I did it:

  1. Created a basic HTML form (name, email, message).
  2. Wrote a Google Apps Script to receive the data and send it to my email using MailApp.
  3. Deployed the script as a Web App (Execute as Me and access set to Anyone).
  4. Used fetch() in JS to POST the data to the Web App URL.
  5. Added Google reCAPTCHA v2 to block spam.

No backend server required, works smoothly, and it's free.

Let me know if you want help setting it up.

Replies: 2 comments 1 reply

This comment was marked as off-topic.

@jessicodesig
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development
3 participants