HTTP 429 with
"error": "default_sender_overloaded" and a Retry-After header.
To avoid this, send with your own email address and app password (sender_email + app_password): your own account is never limited by this service.
1. Quick start
Paste this into any web page (or the browser console). Only to and html are required.
Prefer a ready-made page? Open the test sender or download it (works from your computer or any host), or click Send test email.
2. Which URL to use
https:// and for mobile apps. Encrypted: always use it when you send your own app password.| Where your code runs | Use | Why |
|---|---|---|
| Website on https:// (Cloudflare Pages, Netlify, Vercel, GitHub Pages, cPanel with SSL) | HTTPS | Browsers block http:// calls from secure pages ("mixed content"). |
| Website on plain http:// (XAMPP localhost, LAN IP, http hosting) | HTTPS or HTTP | Both work; HTTPS is encrypted. |
HTML file opened from your computer (file:///) | HTTPS or HTTP | Both work. |
| ESP32 / ESP8266 / Arduino / Pico W | HTTP or HTTPS | HTTP is simplest and lightest; HTTPS works with setInsecure(). |
Page served by an ESP32 / local device (e.g. http://192.168.4.1) | HTTPS or HTTP | The page is http, so both work in the visitor's browser. |
| Server code: PHP, Node.js, Python, C#, VB.NET, Java | HTTPS | Encrypted. HTTP also works. |
| Android / iOS / Flutter / React Native apps | HTTPS | Phones block plain HTTP by default. |
http://email.droomdazlean.com (no "s"). It may redirect to https, and a redirect drops the POST data. Use exactly one of the two URLs above.3. API routes
Same routes on both base URLs: https://email.droomdazlean.com and http://164.68.110.24:8095.
CORS is open to everyone: https and http websites, localhost, local file:// pages, ESP32 and LAN devices, and any request header.
Bodies may be JSON (any Content-Type, including text/plain), form data, or query parameters (GET /send?to=...&html=...).
Aliases accepted for sending: /api/send, /send-email, /api/send-email, /api/email/send, /api/v1/send.
| Method | Route | What it does |
|---|---|---|
| POST | /send | Send an email (JSON or form data). Alias /api/send |
| POST | /api/send-otp | Emails a one-time code in a professional template. Fields: to (or email), optional otp (your own code), length 4-10, expires_minutes, app_name, purpose, return_otp. Returns otp_id |
| POST | /api/verify-otp | Checks a code: otp + otp_id (or to). Returns {"valid": true} or {"valid": false, "message": ...}. 5 attempts max; single use |
| POST | /preview | Returns the final HTML exactly as it will be delivered (cleaned, wrapped, notice added). Nothing is sent |
| GET | /client.js | Browser helper library (section 6) |
| GET | /test | Test sender page |
| GET | /download | Download test_send_email.html |
| GET | /health | Health check: {"status":"ok"} |
| GET | /api/routes | Routes, fields and HTML rules as JSON |
| GET | / | This guide |
4. Request fields for POST /send
JSON (Content-Type: application/json) or form data (application/x-www-form-urlencoded).
| Field | Required | Description |
|---|---|---|
to | Yes | Receiver. Several: comma-separated. Aliases receiver, recipient |
html | Yes | Email content: HTML with inline CSS only (rules). Aliases message, body |
subject | No | Subject line (keep it under ~60 characters) |
from_name | No | Name the receiver sees, e.g. My Shop |
reply_to | No | Where replies should go |
sender_email | No* | Your own sender address. *Must be sent together with app_password |
app_password | No* | App password of sender_email. *Must be sent together with sender_email |
smtp_host / smtp_port | No | Only with your own sender. Default smtp.gmail.com / 587 (465 = SSL) |
layout | No | card (default: your content inside a clean white card) or plain (you provide the full design, e.g. from DDSEmail.template()) |
redirect | No | Plain HTML forms: page to return to, with ?status=sent or ?status=error&message=... |
Default sender or your own sender
| You send | Email goes out from |
|---|---|
Neither sender_email nor app_password | Droom Dazlean default sender: max 25 emails/hour shared by all users |
Both sender_email + app_password | Your account: no limit from this service (only your provider's own limits) |
| Only one of them | Default sender (the one you sent is ignored; the 25/hour limit applies) |
sender_email + app_password.
The default sender is shared and stops at 25 emails per hour for everyone combined; after that it replies 429 default_sender_overloaded until slots free up.The reply's "account" is "custom" when your account sent it, "default" when ours did.
smtp.office365.com/587, Yahoo smtp.mail.yahoo.com/465, cPanel mail.yourdomain.com/465.5. Email design rules: Gmail standards (please read)
Email clients are not browsers. Gmail strips <style> blocks in many cases, never runs JavaScript, and ignores modern CSS layout.
Follow these rules and your emails will look professional on every phone, tablet and computer.
- Inline CSS only: every style goes in
style="..."on the element. - Tables for layout (
role="presentation"), one centered column, max-width 600px,width:100%. - Small, readable fonts: body text 13-15px, small print 11-12px, headings 18-22px.
- Web-safe font stack:
'Segoe UI',Roboto,Arial,sans-serif. - Icons as PNG images from a URL, 16-28px, with
width/heightset, e.g.https://img.icons8.com/fluency/48/checked.png, or emoji. - Buttons are links: an
<a>inside a table cell with background color and padding ("bulletproof button"). - Images: absolute
https://URLs,alttext,style="max-width:100%;height:auto". - Colors: 6-digit hex (
#2457d6), good contrast, one accent color, light backgrounds. - Spacing: padding 16-24px inside cards,
margin:0 0 12pxon paragraphs,line-height:1.5-1.7. - Rounded corners (
border-radius) and 1px light borders (#e5e7eb) for cards. - A clear subject, a short greeting, one main action, and your name/company at the end.
<style>blocks or<link rel="stylesheet">(converted to inline / removed).<script>,onclick=or any JavaScript (removed).- Huge fonts: anything over 28px is reduced to 28px. No 40px+ banners.
display:flex,grid,position:absolute/fixed, negative margins: they break or overlap.- Fixed widths over 600px (they're changed to 100%) or
heighton text cards. - Icon fonts (Font Awesome, Bootstrap Icons, Material Icons) and SVG: Gmail doesn't display them.
<form>,<input>,<button>,<iframe>, video embeds (removed).- Background images for important content, or text inside images.
- ALL-CAPS subjects, many exclamation marks, link-only emails (these go to spam).
- Your own "verify the sender" footer: the API adds the official one.
Size guide
| Element | Recommended | Maximum |
|---|---|---|
| Email width | width:100%; max-width:600px | 600px |
| Body text | 14px, line-height 1.6 | 16px |
| Small print / footer | 11-12px | 13px |
| Title / heading | 18-20px, bold | 28px (enforced) |
| Icons | 18-24px PNG | 48px |
| Buttons | 14px text, padding 10px 22px, radius 6px | one main button |
| Card padding | 20-24px | 32px |
| Logo | height 28-36px | 48px high |
What the API does to every email automatically
- Converts
<style>to inline CSS, then removes<style>,<script>, event handlers, forms, iframes andjavascript:links. - Reduces fonts over 28px, makes images fit the screen, and changes widths over 600px to 100%.
- Places your content in a centered, mobile-friendly 600px layout (
layout: "card"adds a clean white card). - Adds the Droom Dazlean security notice card at the very bottom of every email. It is always included and can't be turned off. Emails from the default sender get a stricter notice asking the receiver to verify the sender first.
- Returns a
"warnings"list telling you what it had to fix, so you can correct your HTML.
Starter template (copy, edit the text, send)
Inline CSS only, tables for layout, small fonts, PNG icons, a bulletproof button. Send it with layout: "plain".
Live preview: exactly what the receiver sees
6. Browser helper: client.js
Add one line to any page and get ready-made functions for sending, checking and building beautiful Gmail-safe emails:
| Function | What it does |
|---|---|
DDSEmail.send({to, subject, html, ...}) | Sends; returns a Promise. Rejects with a clear error message. |
DDSEmail.template({...}) | Builds a professional responsive email (header, icon, title, text, details table, button, note, signature). |
DDSEmail.check(html) | Lists anything Gmail won't accept (style, script, flex, big fonts, icon fonts, SVG...). |
DDSEmail.preview({html}) / previewInto(iframe, {html}) | Final HTML exactly as delivered, notice included. Nothing is sent. |
DDSEmail.icon(name, size) / DDSEmail.button(text, url, color) | Gmail-safe PNG icon and button snippets. |
Example: order confirmation in a few lines
Example: contact form with validation and a status message
7. Code examples
All examples use the default sender. Add sender_email + app_password (server code only) to use your own.
8. ESP32, Arduino and other devices
Simplest: plain HTTP to http://164.68.110.24:8095/send. No certificates, low memory.
ESP32 over HTTPS (encrypted)
MicroPython (ESP32 / Pico W)
Escape quotes inside HTML when building JSON by hand (\"). Keep device emails short, with inline styles only.
9. Responses and troubleshooting
| Problem | Fix |
|---|---|
| Works from a local file, fails on my website | Your site is https: use https://email.droomdazlean.com/send. |
| Console: "Mixed Content" / "blocked" | Same: switch to the HTTPS URL. |
| "Failed to fetch" | Check the URL including /send; open /health. |
Sign-in failed for the sender email | Use a Gmail app password, not your normal password. |
"account":"default" but I sent my details | Send sender_email and app_password together, both non-empty. |
"warnings" in the reply | Your HTML had something Gmail doesn't support; the API fixed it. Correct it at the source. |
| Email looks different in Gmail | You used <style>, flex or grid. Use inline CSS and tables (rules). |
| Email goes to spam | Clear subject, a from_name, real text (not just a link or image), no ALL CAPS. |
| HTML form shows raw JSON after submit | Add a hidden redirect field. |
429 / default_sender_overloaded | The shared default sender reached its 25 emails/hour limit. Send with your own sender_email + app_password right away, or wait retry_after_seconds. |
10. Frequently asked questions
to, subject and html to https://email.droomdazlean.com/send using fetch(), or call DDSEmail.send(). No sign-up or API key; CORS is enabled for every website.sender_email and app_password together in the same request (from server code, over HTTPS). If either is missing, the Droom Dazlean default sender is used.HTTP 429 with default_sender_overloaded. Emails sent with your own sender_email and app_password are not limited by this service.http://164.68.110.24:8095/send (simplest) or https://email.droomdazlean.com/send with WiFiClientSecure. See section 8.style attributes and tables. The API converts style blocks to inline CSS and removes scripts automatically.