1import{_ as A}from"./ZV1vD1F2.js";import{_ as I}from"./Knuu0yqI.js";import{_ as M}from"./BbOzgmaZ.js";import{_ as T}from"./DiDOH44j.js";import{e as E,z as C,c,a as t,b as s,l as m,d as o,g as l,w as n,F as u,m as p,o as a,n as x,p as b,t as d}from"./Bptaa8rK.js";import{M as f}from"./E3DtZ1QA.js";import{A as v}from"./3uxdOHHd.js";import{Z as g}from"./MYvVcLv4.js";import{S as j}from"./D-XapqUN.js";import{C as z}from"./aRNo2yEn.js";import{C as N}from"./BQiFdfEp.js";import{G as R}from"./Bj2KGODH.js";import{L as y}from"./BgdJqKiM.js";import{S as h}from"./c59ybqXw.js";import"./CjCvRCEv.js";import"./Biyx9X2C.js";import"./DxQof98n.js";import"./6sEGL3m6.js";import"./-VfUPoR4.js";import"./BVuC1-10.js";import"./BtnGfn_X.js";import"./CI6zF-xv.js";import"./Bkf6Zlsw.js";import"./Cpj98o6Y.js";import"./DIg5I6P6.js";const D={class:"relative overflow-hidden"},O={class:"relative z-10 max-w-7xl mx-auto px-6 pt-20 pb-24"},L={class:"max-w-3xl mx-auto text-center"},B={class:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 text-sm font-medium mb-6"},F={class:"flex items-center justify-center gap-4"},G={class:"relative z-10 py-16 bg-surface-50 dark:bg-surface-900/50"},J={class:"max-w-4xl mx-auto px-6"},V={class:"card overflow-hidden shadow-2xl shadow-surface-900/10 dark:shadow-black/30"},q={class:"p-4 bg-surface-900 overflow-x-auto"},H={class:"relative z-10 py-24 bg-white dark:bg-surface-900 border-y border-surface-200 dark:border-surface-800"},U={class:"max-w-7xl mx-auto px-6"},W={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-8"},Y={class:"w-12 h-12 rounded-xl bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center mb-4"},Z={class:"text-lg font-semibold mb-2"},K={class:"text-surface-600 dark:text-surface-400"},$={class:"relative z-10 py-12"},Q={class:"max-w-4xl mx-auto px-6"},X={class:"card p-6 bg-gradient-to-r from-cyan-50 to-blue-50 dark:from-cyan-950/20 dark:to-blue-950/20 border border-cyan-200 dark:border-cyan-800"},tt={class:"flex items-start gap-4"},et={class:"flex-shrink-0 w-10 h-10 rounded-full bg-cyan-100 dark:bg-cyan-900/50 flex items-center justify-center"},st={class:"text-surface-600 dark:text-surface-400"},it={class:"relative z-10 py-24"},ot={class:"max-w-7xl mx-auto px-6"},at={class:"grid md:grid-cols-2 lg:grid-cols-4 gap-6"},rt={class:"w-14 h-14 rounded-2xl bg-gradient-to-br from-blue-500 to-blue-600 flex items-center justify-center mx-auto mb-4"},lt={class:"font-semibold mb-2"},nt={class:"text-sm text-surface-600 dark:text-surface-400"},dt={class:"relative z-10 py-24"},ct={class:"max-w-7xl mx-auto px-6"},mt={class:"relative overflow-hidden rounded-3xl bg-gradient-to-br from-blue-600 to-blue-800 p-12 text-center"},ut={class:"relative"},pt=`import { MailJunky } from '@mailjunky/sdk' 2 3const mailjunky = new MailJunky('mj_live_xxx') 4 5// Send a transactional email 6const result = await mailjunky.emails.send({ 7 from: '[email protected]', 8 to: '[email protected]', 9 subject: 'Your order has shipped!', 10 html: '<h1>Order #12345</h1><p>Your package is on its way.</p>', 11 // Optional: track this email 12 tags: ['order-confirmation', 'shipping'] 13}) 14 15console.log('Email sent:', result.messageId)`,Gt=E({__name:"email-api",setup(xt){C({title:"Email API - Transactional Email Made Simple | MailJunky",description:"Send transactional emails with 99.9% deliverability. Simple REST API, real-time analytics. Start free with 200 emails/month."});const w=[{icon:g,title:"Lightning Fast",description:"Emails delivered in milliseconds with our optimized infrastructure."},{icon:j,title:"99.9% Deliverability",description:"Enterprise-grade infrastructure ensures your emails land in the inbox."},{icon:z,title:"Simple API",description:"Send emails with a single API call. No complex configuration needed."},{icon:N,title:"Real-time Analytics",description:"Track opens, clicks, bounces, and complaints with webhooks."},{icon:R,title:"Custom Domains",description:"Send from your own domain with full DKIM and SPF authentication."},{icon:y,title:"Secure by Default",description:"TLS encryption, API key authentication, and SOC 2 compliant infrastru
15cture."}],_=[{title:"Password Resets",description:"Instant, secure password reset emails with one-click links.",icon:y},{title:"Order Confirmations",description:"Transactional receipts and shipping notifications.",icon:f},{title:"Welcome Emails",description:"Onboard new users with personalized welcome messages.",icon:g},{title:"Alerts & Notifications",description:"Real-time alerts for important account activity.",icon:h}];return(bt,e)=>{const k=A,r=I,S=M,P=T;return a(),c("div",D,[e[18]||(e[18]=t("div",{class:"absolute inset-0 bg-grid-pattern opacity-50"},null,-1)),e[19]||(e[19]=t("div",{class:"absolute top-0 left-1/2 -translate-x-1/2 w-[800px] h-[600px] bg-gradient-radial from-blue-500/20 via-transparent to-transparent blur-3xl"},null,-1)),s(k,{transparent:"","active-link":"products"}),t("section",O,[t("div",L,[t("div",B,[s(l(f),{class:"w-4 h-4"}),e[0]||(e[0]=o(" Email API ",-1))]),e[3]||(e[3]=t("h1",{class:"text-5xl sm:text-6xl font-bold tracking-tight mb-6"},[o(" Transactional email "),t("span",{class:"text-gradient"},"that just works")],-1)),e[4]||(e[4]=t("p",{class:"text-xl text-surface-600 dark:text-surface-400 mb-10 max-w-2xl mx-auto"}," Send millions of emails with enterprise-grade reliability. Simple REST API, real-time analytics, and 99.9% deliverability guaranteed. ",-1)),t("div",F,[s(r,{to:"/login",class:"btn-primary text-base px-6 py-3"},{default:n(()=>[e[1]||(e[1]=o(" Start sending free ",-1)),s(l(v),{class:"w-4 h-4"})]),_:1}),s(r,{to:"/docs",class:"btn-secondary text-base px-6 py-3"},{default:n(()=>[...e[2]||(e[2]=[o(" Read the docs ",-1)])]),_:1})]),e[5]||(e[5]=t("p",{class:"mt-6 text-sm text-surface-500"}," 200 free emails/month. No credit card required. ",-1))])]),t("section",G,[t("div",J,[e[7]||(e[7]=t("div",{class:"text-center mb-10"},[t("h2",{class:"text-2xl font-bold mb-3"},"One API call. That's it."),t("p",{class:"text-surface-600 dark:text-surface-400"},"No SMTP servers. No complex configuration. Just code.")],-1)),t("div",V,[e[6]||(e[6]=m('<div class="flex items-center gap-2 px-4 py-3 bg-surface-100 dark:bg-surface-800 border-b border-surface-200 dark:border-surface-700"><div class="flex gap-1.5"><div class="w-3 h-3 rounded-full bg-red-400"></div><div class="w-3 h-3 rounded-full bg-amber-400"></div><div class="w-3 h-3 rounded-full bg-green-400"></div></div><span class="text-xs text-surface-500 font-mono ml-2">send-email.ts</span></div>',1)),t("div",q,[s(S,{code:pt,language:"typescript"})])])])]),t("section",H,[t("div",U,[e[8]||(e[8]=t("div",{class:"text-center mb-16"},[t("h2",{class:"text-3xl font-bold mb-4"},"Built for developers"),t("p",{class:"text-lg text-surface-600 dark:text-surface-400"},"Everything you need to send emails reliably at scale.")],-1)),t("div",W,[(a(),c(u,null,p(w,i=>t("div",{key:i.title,class:"p-6 rounded-2xl bg-surface-50 dark:bg-surface-800/50"},[t("div",Y,[(a(),x(b(i.icon),{class:"w-6 h-6 text-blue-600 dark:text-blue-400"}))]),t("h3",Z,d(i.title),1),t("p",K,d(i.description),1)])),64))])])]),t("section",$,[t("div",Q,[t("div",X,[t("div",tt,[t("div",et,[s(l(h),{class:"w-5 h-5 text-cyan-600 dark:text-cyan-400"})]),t("div",null,[e[12]||(e[12]=t("h4",{class:"font-semibold mb-1"},"Prefer SMTP?",-1)),t("p",st,[e[10]||(e[10]=o(" Connect WordPress, Outlook, or any SMTP client with our ",-1)),s(r,{to:"/products/smtp",class:"text-cyan-600 dark:text-cyan-400 underline font-medium"},{default:n(()=>[...e[9]||(e[9]=[o("SMTP Gateway",-1)])]),_:1}),e[11]||(e[11]=o(". Use your API key as the password â no code required. ",-1))])])])])])]),t("section",it,[t("div",ot,[e[13]||(e[13]=t("div",{class:"text-center mb-16"},[t("h2",{class:"text-3xl font-bold mb-4"},"Perfect for every use case"),t("p",{class:"text-lg text-surface-600 dark:text-surface-400"},"Transactional emails your users actually receive.")],-1)),t("div",at,[(a(),c(u,null,p(_,i=>t("div",{key:i.title,class:"card p-6 text-center hover:shadow-lg transition-shadow"},[t("div",rt,[(a(),x(b(i.icon),{class:"w-7 h-7 text-white"}))]),t("h3",lt,d(i.title),1),t("p",nt,d(i.description),1)])),64))])])]),e[20]||(e[20]=m('<section class="relative z-10 py-16 bg-gradient-to-r from-blue-600 to-blue-700"><div class="max-w-7xl mx-auto px-6"><div class="grid grid-cols-2 md:grid-cols-4 gap-8 text-center text-white"><div><div class="text-4xl font-bold mb-1">99.9%</div><div class="text-blue-200">Deliverability</div></div><div><div class="text-4xl font-bold mb-1"><100ms</div><div class="text-blue-200">Avg. API latency</div></div><div><div class="text-4xl font-bold mb-1">1M+</div><div class="text-blue-200">Emails/day capacity</div></div><div><div class="text-4xl font-bold mb-1">24/7</div><div class="text-blue-200">Monitoring</div></div></div></div></section>',1)),t("section",dt,[t("div",ct,[t("div",mt,[e[17]||(e[17]=t("div",{class:"absolute inset-0 bg-grid-pattern opacity-10"},null,-1)),t("div",ut,[e[15]||(e[15]=t("h2",{class:"text-3xl font-bold text-white mb-4"},"Ready to start sending?",-1)),e[16]||(e[16]=t("p",{class:"text-lg text-blue-100 mb-8 max-w-xl mx-auto"}," Get 200 free emails/month. Upgrade anytime as you grow. ",-1)),s(r,{to:"/login",class:"inline-flex items-center gap-2 px-6 py-3 bg-white text-blue-700 font-semibold rounded-lg hover:bg-blue-50 transition-colors"},{default:n(()=>[e[14]||(e[14]=o(" Create your API key ",-1)),s(l(v),{class:"w-4 h-4"})]),_:1})])])])]),s(P)])}}});
15export{Gt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.