Developer Reference

SEND EMAIL DYNAMIC API

Five-field JSON request · fixed server SMTP · no database

POST /send.php
Content-Type: application/json

{
  "subject": "New Enquiry",
  "user-email": "rahul@gmail.com",
  "client-email": "client@example.com",
  "enquiry_ui": "<FULL ENQUIRY EMAIL HTML/CSS>",
  "thankyou_ui": "<FULL THANK-YOU EMAIL HTML/CSS>"
}

Field rules


  • subject — required, up to 200 characters.
  • user-email — recipient of the thank-you email.
  • client-email — recipient of the enquiry email.
  • enquiry_ui — complete HTML/CSS email body.
  • thankyou_ui — complete HTML/CSS email body.

Enquiry email

To: client-email
Reply-To: user-email
Subject: subject
HTML: enquiry_ui

Thank-you email

To: user-email
Reply-To: client-email
Subject: Thank You - subject
HTML: thankyou_ui

Security & limits

HTML sanitization

Executable tags, inline event handlers and scriptable URL schemes are removed.

Rate limiting

Per-IP minute/hour limits are enforced using file-based counters.

No secret in request

SMTP username/password stay on the server configuration.

Example response — success
{
  "success": true,
  "message": "Both emails sent successfully.",
  "enquiry_sent": true,
  "thankyou_sent": true,
  "request_id": "..."
}