landing.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta name="description" content="MailHub — self-hosted transactional email with API, SMTP, DNS and webhooks." />
  7. <title>MailHub</title>
  8. <script type="module" crossorigin src="/assets/landing-DZ480DaL.js"></script>
  9. <link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-Dezn_h7o.js">
  10. <link rel="stylesheet" crossorigin href="/assets/landing-CC2SsPE-.css">
  11. </head>
  12. <body>
  13. <div class="page">
  14. <header class="site-header">
  15. <a class="brand" href="#top">
  16. <span class="brand-mark">MH</span>
  17. <span class="brand-name">MailHub</span>
  18. </a>
  19. <nav class="nav-links" aria-label="Primary">
  20. <a href="#features" data-i18n="nav.features">Features</a>
  21. <a href="#integrate" data-i18n="nav.integrate">Integrate</a>
  22. <a href="#api" data-i18n="nav.api">API</a>
  23. <a href="#smtp" data-i18n="nav.smtp">SMTP</a>
  24. <a href="#webhooks" data-i18n="nav.webhooks">Webhooks</a>
  25. </nav>
  26. <div class="header-actions">
  27. <div class="lang-switch" role="group" aria-label="Language">
  28. <button type="button" data-locale="zh-CN" class="lang-btn">中文</button>
  29. <button type="button" data-locale="en-US" class="lang-btn">EN</button>
  30. </div>
  31. <a
  32. class="btn btn-ghost"
  33. href="https://github.com/chendeben/MailHub"
  34. target="_blank"
  35. rel="noopener noreferrer"
  36. data-i18n="cta.github"
  37. >GitHub</a>
  38. <a class="btn btn-ghost" href="/login" data-i18n="cta.login">Log in</a>
  39. <a class="btn btn-primary" href="/register" data-i18n="cta.signup">Get started</a>
  40. </div>
  41. </header>
  42. <main id="top">
  43. <section class="hero">
  44. <div class="hero-copy">
  45. <p class="eyebrow" data-i18n="hero.eyebrow">Transactional email platform</p>
  46. <h1 data-i18n="hero.title">Send reliable email via API &amp; SMTP</h1>
  47. <p class="lede" data-i18n="hero.lede">
  48. Self-hosted MailHub gives you domain DNS guidance, DKIM signing, delivery logs, and signed webhooks — without locking you into a black-box SaaS.
  49. </p>
  50. <div class="hero-cta">
  51. <a class="btn btn-primary btn-lg" href="/register" data-i18n="cta.signup">Get started</a>
  52. <a class="btn btn-ghost btn-lg" href="#api" data-i18n="cta.viewApi">View API sample</a>
  53. </div>
  54. <ul class="trust-strip">
  55. <li data-i18n="trust.selfHosted">Self-hosted</li>
  56. <li>DKIM</li>
  57. <li>SPF</li>
  58. <li>DMARC</li>
  59. <li data-i18n="trust.webhooks">Delivery webhooks</li>
  60. </ul>
  61. </div>
  62. <div class="hero-code" aria-hidden="false">
  63. <div class="code-card">
  64. <div class="code-card-bar">
  65. <span>curl</span>
  66. <button type="button" class="copy-btn" data-copy-target="hero-curl" data-i18n="common.copy">Copy</button>
  67. </div>
  68. <pre id="hero-curl"><code data-i18n-html="hero.curl"></code></pre>
  69. </div>
  70. </div>
  71. </section>
  72. <section id="features" class="section">
  73. <div class="section-head">
  74. <h2 data-i18n="features.title">Built for production senders</h2>
  75. <p data-i18n="features.sub">Everything you need to authenticate domains and observe delivery.</p>
  76. </div>
  77. <div class="feature-grid">
  78. <article class="card"><h3 data-i18n="features.dns.title">Domains &amp; DNS</h3><p data-i18n="features.dns.body">Guided SPF, DKIM, DMARC, and one-click DNS provider writes.</p></article>
  79. <article class="card"><h3 data-i18n="features.smtp.title">SMTP Submission</h3><p data-i18n="features.smtp.body">App-friendly SMTP listeners with credentials you control.</p></article>
  80. <article class="card"><h3 data-i18n="features.api.title">HTTP Send API</h3><p data-i18n="features.api.body">Bearer tokens and a simple JSON send endpoint for apps and services.</p></article>
  81. <article class="card"><h3 data-i18n="features.logs.title">Delivery logs</h3><p data-i18n="features.logs.body">Track queue and MTA outcomes with searchable send history.</p></article>
  82. <article class="card"><h3 data-i18n="features.hooks.title">Webhooks</h3><p data-i18n="features.hooks.body">Signed callbacks for sent, bounced, and failed terminal events.</p></article>
  83. <article class="card"><h3 data-i18n="features.multi.title">Multi-user isolation</h3><p data-i18n="features.multi.body">Domains, tokens, and logs stay scoped to each account.</p></article>
  84. </div>
  85. </section>
  86. <section id="integrate" class="section section-alt">
  87. <div class="section-head">
  88. <h2 data-i18n="integrate.title">Three ways to integrate</h2>
  89. <p data-i18n="integrate.sub">Pick the path that matches your stack — configure after sign-in.</p>
  90. </div>
  91. <div class="integrate-grid">
  92. <article class="card">
  93. <h3 data-i18n="integrate.api.title">API</h3>
  94. <p data-i18n="integrate.api.body">Create an API token, then POST JSON to /api/send with Bearer auth.</p>
  95. <a class="text-link" href="#api" data-i18n="integrate.api.link">See API sample →</a>
  96. </article>
  97. <article class="card">
  98. <h3 data-i18n="integrate.smtp.title">SMTP</h3>
  99. <p data-i18n="integrate.smtp.body">Point your app at MailHub submission ports with per-user credentials.</p>
  100. <a class="text-link" href="#smtp" data-i18n="integrate.smtp.link">See SMTP details →</a>
  101. </article>
  102. <article class="card">
  103. <h3 data-i18n="integrate.hooks.title">Webhooks</h3>
  104. <p data-i18n="integrate.hooks.body">Subscribe endpoints to terminal delivery events with HMAC signatures.</p>
  105. <a class="text-link" href="#webhooks" data-i18n="integrate.hooks.link">See webhook events →</a>
  106. </article>
  107. </div>
  108. </section>
  109. <section id="api" class="section">
  110. <div class="section-head">
  111. <h2 data-i18n="api.title">Send API</h2>
  112. <p data-i18n="api.sub">Minimal JSON contract. Hostnames below are placeholders — replace with your MailHub host.</p>
  113. </div>
  114. <div class="code-card">
  115. <div class="code-card-bar">
  116. <span>POST /api/send</span>
  117. <button type="button" class="copy-btn" data-copy-target="api-curl" data-i18n="common.copy">Copy</button>
  118. </div>
  119. <pre id="api-curl"><code data-i18n-html="api.curl"></code></pre>
  120. </div>
  121. <ul class="field-list">
  122. <li><code>from</code> — <span data-i18n="api.field.from">sender address on a verified domain</span></li>
  123. <li><code>to</code> — <span data-i18n="api.field.to">recipient string or array</span></li>
  124. <li><code>subject</code> — <span data-i18n="api.field.subject">message subject</span></li>
  125. <li><code>text</code> / <code>html</code> — <span data-i18n="api.field.body">message body</span></li>
  126. </ul>
  127. </section>
  128. <section id="smtp" class="section section-alt">
  129. <div class="section-head">
  130. <h2 data-i18n="smtp.title">SMTP submission</h2>
  131. <p data-i18n="smtp.sub">Default listener ports (override in your deployment):</p>
  132. </div>
  133. <div class="port-grid">
  134. <div class="card mono"><strong>25</strong><span>smtp</span></div>
  135. <div class="card mono"><strong>587</strong><span>smtp / STARTTLS</span></div>
  136. <div class="card mono"><strong>465</strong><span>smtps</span></div>
  137. <div class="card mono"><strong>2525</strong><span>smtp</span></div>
  138. </div>
  139. <p class="note" data-i18n="smtp.note">Create SMTP login credentials in the console after registration. Host example: mail.example.com</p>
  140. </section>
  141. <section id="webhooks" class="section">
  142. <div class="section-head">
  143. <h2 data-i18n="webhooks.title">Delivery webhooks</h2>
  144. <p data-i18n="webhooks.sub">Terminal events only — signed HTTPS callbacks to your systems.</p>
  145. </div>
  146. <div class="table-wrap">
  147. <table>
  148. <thead>
  149. <tr>
  150. <th data-i18n="webhooks.col.status">Status</th>
  151. <th data-i18n="webhooks.col.type">type</th>
  152. </tr>
  153. </thead>
  154. <tbody>
  155. <tr><td><code>sent</code></td><td><code>email.sent</code></td></tr>
  156. <tr><td><code>bounced</code></td><td><code>email.bounced</code></td></tr>
  157. <tr><td><code>failed</code></td><td><code>email.failed</code></td></tr>
  158. </tbody>
  159. </table>
  160. </div>
  161. <p class="note"><span data-i18n="webhooks.sig">Signature header:</span> <code>X-MailHub-Signature: t=&lt;unix&gt;,v1=&lt;hmac&gt;</code></p>
  162. </section>
  163. <section class="section cta-band">
  164. <h2 data-i18n="ctaBand.title">Ready to send?</h2>
  165. <p data-i18n="ctaBand.sub">Create an account, add a domain, and ship your first message in minutes.</p>
  166. <div class="hero-cta">
  167. <a class="btn btn-primary btn-lg" href="/register" data-i18n="cta.signup">Get started</a>
  168. <a class="btn btn-ghost btn-lg" href="/login" data-i18n="cta.login">Log in</a>
  169. </div>
  170. </section>
  171. </main>
  172. <footer class="site-footer">
  173. <div>
  174. <strong>MailHub</strong>
  175. <span data-i18n="footer.tag">Self-hosted email delivery control plane</span>
  176. </div>
  177. <div class="footer-links">
  178. <a
  179. href="https://github.com/chendeben/MailHub"
  180. target="_blank"
  181. rel="noopener noreferrer"
  182. data-i18n="cta.github"
  183. >GitHub</a>
  184. <a href="/login" data-i18n="cta.login">Log in</a>
  185. <a href="/register" data-i18n="cta.signup">Get started</a>
  186. </div>
  187. </footer>
  188. </div>
  189. </body>
  190. </html>