Andrix.Ng
AND-P-005All Projects

API Mail

ServiceAPI Service
Intro

A standalone PHP microservice that handles transactional email delivery for static websites — secure, lightweight, and ready to deploy.

Screenshot of API Mail
Overview

A secure PHP microservice to handle contact form submissions for static and JAMstack websites.

My Role

Backend Developer

Impact

Eliminated client-side SMTP exposure with a clean, deployable backend solution.

Design & Architecture

The Challenge

Static sites and JAMstack projects have no built-in server to process contact forms. Exposing SMTP credentials on the client side is a critical security risk that needed a clean backend solution.

The Solution

Engineered a self-contained PHP 8 API with strict input sanitization, configurable CORS policies, and PHPMailer integration — deployable on shared hosting.

Key Features

  • Transactional email endpoint
  • Input validation and sanitization
  • Configurable CORS policies
  • PHPMailer integration
Technologies Used
PHP 8PHPMailerREST APISecurity
Full screen preview