Free · No sign-up · HTTPS · CORS enabled

Send professional HTML emails with one request

From any website, HTML file, server, mobile app or ESP32 device. Use the Droom Dazlean sender or your own Gmail with an app password. Every email is checked against Gmail's rules and fits every screen.

Default sender limit: 25 emails per hour for all users combined
The shared Droom Dazlean default sender can deliver at most 25 emails in any rolling 60-minute window, counted across everyone using this API (each receiver address counts as one email). When the limit is reached, the API answers 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.
Checking current usage... /api/quota

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 (recommended)
https://email.droomdazlean.com/send
Works everywhere. Required for any website served over https:// and for mobile apps. Encrypted: always use it when you send your own app password.
HTTP
http://164.68.110.24:8095/send
For ESP32/Arduino and small devices, local tools, http pages and local files. Not encrypted. Browsers block it on https:// pages.
Where your code runsUseWhy
Website on https:// (Cloudflare Pages, Netlify, Vercel, GitHub Pages, cPanel with SSL)HTTPSBrowsers block http:// calls from secure pages ("mixed content").
Website on plain http:// (XAMPP localhost, LAN IP, http hosting)HTTPS or HTTPBoth work; HTTPS is encrypted.
HTML file opened from your computer (file:///)HTTPS or HTTPBoth work.
ESP32 / ESP8266 / Arduino / Pico WHTTP or HTTPSHTTP is simplest and lightest; HTTPS works with setInsecure().
Page served by an ESP32 / local device (e.g. http://192.168.4.1)HTTPS or HTTPThe page is http, so both work in the visitor's browser.
Server code: PHP, Node.js, Python, C#, VB.NET, JavaHTTPSEncrypted. HTTP also works.
Android / iOS / Flutter / React Native appsHTTPSPhones block plain HTTP by default.
Don't use 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.

MethodRouteWhat it does
POST/sendSend an email (JSON or form data). Alias /api/send
POST/api/send-otpEmails 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-otpChecks a code: otp + otp_id (or to). Returns {"valid": true} or {"valid": false, "message": ...}. 5 attempts max; single use
POST/previewReturns the final HTML exactly as it will be delivered (cleaned, wrapped, notice added). Nothing is sent
GET/client.jsBrowser helper library (section 6)
GET/testTest sender page
GET/downloadDownload test_send_email.html
GET/healthHealth check: {"status":"ok"}
GET/api/routesRoutes, 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).

FieldRequiredDescription
toYesReceiver. Several: comma-separated. Aliases receiver, recipient
htmlYesEmail content: HTML with inline CSS only (rules). Aliases message, body
subjectNoSubject line (keep it under ~60 characters)
from_nameNoName the receiver sees, e.g. My Shop
reply_toNoWhere replies should go
sender_emailNo*Your own sender address. *Must be sent together with app_password
app_passwordNo*App password of sender_email. *Must be sent together with sender_email
smtp_host / smtp_portNoOnly with your own sender. Default smtp.gmail.com / 587 (465 = SSL)
layoutNocard (default: your content inside a clean white card) or plain (you provide the full design, e.g. from DDSEmail.template())
redirectNoPlain HTML forms: page to return to, with ?status=sent or ?status=error&message=...

Default sender or your own sender

You sendEmail goes out from
Neither sender_email nor app_passwordDroom Dazlean default sender: max 25 emails/hour shared by all users
Both sender_email + app_passwordYour account: no limit from this service (only your provider's own limits)
Only one of themDefault sender (the one you sent is ignored; the 25/hour limit applies)
Sending more than a few emails? Use your own 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.

Gmail app password: turn on 2-Step Verification at myaccount.google.com/security, then create one at myaccount.google.com/apppasswords and copy the 16 letters (spaces are fine). Other providers: Outlook smtp.office365.com/587, Yahoo smtp.mail.yahoo.com/465, cPanel mail.yourdomain.com/465.
Never put your app password in a public website's JavaScript, because anyone can read it there. Send it only from server code (PHP, Node, Python...) and always over HTTPS.

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.

Do
  • 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/height set, 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, alt text, 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 12px on 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.
Don't
  • <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 height on 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

ElementRecommendedMaximum
Email widthwidth:100%; max-width:600px600px
Body text14px, line-height 1.616px
Small print / footer11-12px13px
Title / heading18-20px, bold28px (enforced)
Icons18-24px PNG48px
Buttons14px text, padding 10px 22px, radius 6pxone main button
Card padding20-24px32px
Logoheight 28-36px48px high

What the API does to every email automatically

  1. Converts <style> to inline CSS, then removes <style>, <script>, event handlers, forms, iframes and javascript: links.
  2. Reduces fonts over 28px, makes images fit the screen, and changes widths over 600px to 100%.
  3. Places your content in a centered, mobile-friendly 600px layout (layout: "card" adds a clean white card).
  4. 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.
  5. 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:

FunctionWhat 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

ProblemFix
Works from a local file, fails on my websiteYour 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 emailUse a Gmail app password, not your normal password.
"account":"default" but I sent my detailsSend sender_email and app_password together, both non-empty.
"warnings" in the replyYour HTML had something Gmail doesn't support; the API fixed it. Correct it at the source.
Email looks different in GmailYou used <style>, flex or grid. Use inline CSS and tables (rules).
Email goes to spamClear subject, a from_name, real text (not just a link or image), no ALL CAPS.
HTML form shows raw JSON after submitAdd a hidden redirect field.
429 / default_sender_overloadedThe 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

POST JSON with 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.

Yes. Send 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.

Only for the shared default sender: at most 25 emails per rolling hour for all users combined (each receiver counts as one). When it is full, the API returns HTTP 429 with default_sender_overloaded. Emails sent with your own sender_email and app_password are not limited by this service.

Yes: POST to http://164.68.110.24:8095/send (simplest) or https://email.droomdazlean.com/send with WiFiClientSecure. See section 8.

Gmail and most email clients strip style blocks and never run JavaScript. Use inline style attributes and tables. The API converts style blocks to inline CSS and removes scripts automatically.

The service is open to everyone, so Droom Dazlean adds a notice telling receivers the email was sent automatically and asking them to verify the sender before clicking anything. Anyone with concerns can contact [email protected].