The AI Cloud Engineers

The AI Cloud Engineers

Serverless Contact Form with API Gateway, Lambda, and SES: A Complete Guide

Lefteris Karageorgiou's avatar
Lefteris Karageorgiou
Jan 21, 2026
∙ Paid

Static sites have become incredibly popular for portfolios, landing pages, and business websites. Services like S3 static hosting and CloudFront make deployment simple and cheap. However, there is one common challenge: handling user input.

A contact form seems straightforward until you remember that static sites have no server to process form submissions. You need somewhere to receive the data, validate it, and do something useful with it.

This article walks through building a serverless contact form backend using AWS services. By the end, you will have a solution that receives form submissions, sends email notifications, and costs nearly nothing to operate.

Thanks for reading The Cloud Engineers! Subscribe for free to receive new posts and support my work.

Architecture Overview

The serverless contact form backend uses three core AWS services working together.

Amazon API Gateway provides an HTTPS endpoint that your frontend form can call. It receives the POST request containing the form dat…

User's avatar

Continue reading this post for free, courtesy of Lefteris Karageorgiou.

Or purchase a paid subscription.
© 2026 Lefteris Karageorgiou · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for writing, podcasting, and media founders.