[{"data":1,"prerenderedAt":1350},["ShallowReactive",2],{"index":3,"index-snippets":217,"pro-hero-title":1172,"mdc-dtwyyt-key":1191,"mdc-lgdi0m-key":1199,"mdc--9lw4y3-key":1207,"mdc--2fxd3o-key":1215,"mdc--cn2ka0-key":1240,"mdc--9y6geq-key":1248,"mdc-rhtxw6-key":1265,"mdc--ua43oi-key":1296,"mdc--rwrrqp-key":1304,"mdc--af1gkp-key":1333},{"id":4,"title":5,"cta":6,"description":15,"extension":16,"faq":17,"features":50,"hero":90,"meta":100,"quickstart":102,"sections":110,"stem":156,"testimonials":157,"useCases":158,"__hash__":216},"index\u002F0.index.yml","Email Testing for Developers",{"title":7,"description":8,"links":9},"Start testing","Sign up, add a domain, receive your first test email.",[10],{"label":11,"icon":12,"to":13,"size":14},"Get Started","heroicons:arrow-right","\u002Fsignup\u002F","xl","Email sandbox for developers. A test SMTP server, real MX on your domain, IMAP, POP3, and a REST API. Nothing leaves the sandbox.","yml",{"title":18,"items":19},"FAQ",[20,23,26,29,32,35,38,41,44,47],{"label":21,"content":22},"What is smtp.dev?","A hosted email sandbox: mail servers that accept your app's email and keep it instead of delivering it. Point a domain's MX record at it or send through send.smtp.dev, then read what arrived over IMAP, POP3, the REST API, or the web UI.",{"label":24,"content":25},"Does it deliver to real inboxes?","No. Mail sent through send.smtp.dev only reaches accounts in your sandbox, and any other recipient is refused, so a test can't email a customer by accident. For real delivery, use a service built for sending, like Amazon SES, SendGrid, or Postmark.",{"label":27,"content":28},"Can it receive email from external services?","Yes. Sandbox domains have real MX records, so anything can deliver to them, such as a signup confirmation from a third-party service, an OTP, or mail from your staging provider. Receiving is unrestricted. Only outbound mail is limited.",{"label":30,"content":31},"Can it test my production mail server?","Only from the receiving end. Send from your server or provider to an address on your sandbox domain, and the message arrives with its raw source and [SPF, DKIM, and DMARC results](\u002Fdocs\u002Fguides\u002Fspf-dkim-dmarc\u002F). It doesn't probe a server from outside, look up blocklists, or predict whether Gmail will file a message as spam. To check a server by hand, the [SMTP test guide](\u002Fdocs\u002Fguides\u002Fsend-test-email\u002F#testing-your-own-server) has swaks, curl, and openssl commands that work against any host.",{"label":33,"content":34},"Is it a disposable email service?","Not a public one. There are no shared domains and no inboxes anyone can open. Addresses live on a domain you own, and each account has its own password. Tests can still create an address per run over the API and delete it afterwards.",{"label":36,"content":37},"How is this different from MailHog or Mailpit?","Local catchers run per machine. The sandbox is hosted on real domains with real DNS, so CI, staging, and your laptop all hit the same MX path production will. Inbound messages also get SPF, DKIM, and DMARC verdicts, which localhost can't give you. The [fake SMTP server comparison](\u002Fdocs\u002Fguides\u002Flocal-development\u002F) puts them side by side.",{"label":39,"content":40},"How does it compare with Mailtrap, Mailosaur, and Mailinator?","It puts addresses on your own domain, has no message quotas, and includes IMAP and POP3 on every plan. The comparisons list prices, limits, when to stay where you are, and how to move a test suite: [Mailtrap](\u002Fdocs\u002Falternatives\u002Fmailtrap\u002F), [Mailosaur](\u002Fdocs\u002Falternatives\u002Fmailosaur\u002F), [Mailinator](\u002Fdocs\u002Falternatives\u002Fmailinator\u002F).",{"label":42,"content":43},"Do I need an SDK?","No. It's standard SMTP, IMAP, and POP3, plus a REST API described by an OpenAPI spec. Your existing mail library and HTTP client are enough.",{"label":45,"content":46},"How do tests and agents read a message?","Poll the REST API for new messages, or subscribe over SSE and react when one lands. The [CI](\u002Fdocs\u002Fguides\u002Fci\u002F), [Playwright](\u002Fdocs\u002Fguides\u002Fe2e\u002F), and [AI agent](\u002Fdocs\u002Fguides\u002Fagents\u002F) guides have working examples.",{"label":48,"content":49},"Which protocols and ports does it use?","SMTP on send.smtp.dev port 587, IMAP on imap.smtp.dev port 993, and POP3 on pop.smtp.dev port 995. The login is the account's full address and its password. The [IMAP and POP3 guide](\u002Fdocs\u002Fguides\u002Fimap-pop3\u002F) has the commands for both.",{"title":51,"description":52,"items":53},"Features","",[54,58,62,66,70,74,78,82,86],{"title":55,"description":56,"icon":57},"Custom Domains","Bring your own domains and subdomains. One MX record each.","heroicons:globe-alt",{"title":59,"description":60,"icon":61},"Disposable Accounts","Create an address per test run over the API. Delete it after.","heroicons:inbox-stack",{"title":63,"description":64,"icon":65},"Unlimited Messages","No daily caps and no metering on any plan.","heroicons:envelope",{"title":67,"description":68,"icon":69},"Sandboxed","Receives real email from any service. Sends only within the sandbox.","heroicons:shield-check",{"title":71,"description":72,"icon":73},"SPF, DKIM, DMARC","Checked on every inbound message. Results in the UI and the API.","heroicons:check-badge",{"title":75,"description":76,"icon":77},"Retention Timers","Messages kept for your plan's window, up to 90 days. Per-message expiry for shorter.","heroicons:clock",{"title":79,"description":80,"icon":81},"REST API","Domains, accounts, mailboxes, messages, tokens. OpenAPI spec included.","heroicons:command-line",{"title":83,"description":84,"icon":85},"Real-time Updates","New messages pushed via SSE. No polling.","heroicons:signal",{"title":87,"description":88,"icon":89},"Catch-All & Aliasing","Wildcard accounts and plus-sign addressing. Capture everything or route by tag.","heroicons:at-symbol",{"title":91,"description":92,"links":93},"Email Testing for [Developers]{class=\"text-(--ui-primary)\"}","Test emails like you debug code. SMTP in, IMAP\u002FAPI out. Inspect headers, MIME, and raw source. Nothing leaves the sandbox.",[94,95],{"label":11,"icon":12,"to":13,"size":14},{"label":96,"to":97,"color":98,"variant":99,"size":14},"Documentation","\u002Fdocs\u002Fgetting-started\u002F","neutral","subtle",{"navigation":101},false,{"title":103,"description":104,"links":105},"Send, read, assert","Your app sends over SMTP. Your test reads the result over the API. The whole loop fits on one screen.",[106],{"label":107,"to":108,"color":98,"variant":99,"trailing":109,"icon":12},"Read the CI guide","\u002Fdocs\u002Fguides\u002Fci\u002F",true,[111,135],{"title":112,"description":113,"id":114,"orientation":115,"img":116,"srcset":117,"width":118,"height":119,"alt":120,"features":121},"SMTP, IMAP, POP3","Any mail client or library connects with its standard settings. No SDK to install.","features","horizontal","\u002Fprotocols-1280.webp","\u002Fprotocols-640.webp 640w, \u002Fprotocols-1280.webp 1280w",1280,630,"SMTP, IMAP, and POP3 protocol support",[122,127,130],{"title":123,"description":124,"icon":125,"to":126},"Quick setup","Point an MX record and the domain receives real email from any service.","heroicons:bolt","\u002Fdocs\u002Fsetup\u002Fdomain\u002F",{"title":79,"description":128,"icon":81,"to":129},"Accounts, messages, domains, tokens. Everything in the UI has an endpoint.","\u002Fdocs\u002Fapi\u002F",{"title":131,"description":132,"icon":133,"to":134},"Message inspection","Headers, the MIME tree, and the raw RFC 5322 source of every message.","heroicons:document-magnifying-glass","\u002Fdocs\u002Ffeatures\u002Fmessage\u002F",{"title":136,"description":137,"id":138,"orientation":115,"reverse":109,"img":139,"srcset":140,"width":118,"height":141,"alt":142,"features":143},"Inspect received email","Check what arrived in the UI or wire it into CI.","delivery","\u002Fpreview-1280.webp","\u002Fpreview-640.webp 640w, \u002Fpreview-1280.webp 1280w",1045,"Email message preview with headers, HTML, and raw source",[144,148,152],{"title":145,"description":146,"icon":147},"Delivery checks","HTML preview, plain text, headers, and raw source. SPF, DKIM, and DMARC results come over the API.","heroicons:magnifying-glass",{"title":149,"description":150,"icon":151},"CI-ready","Any CI that can send over SMTP works, including GitHub Actions, Jenkins, and GitLab CI.","heroicons:code-bracket",{"title":153,"description":154,"icon":155},"Deliverability audit","Sender config, HTML structure, links, and the content patterns spam filters flag. Grouped by severity.","heroicons:clipboard-document-check","0.index",null,{"title":159,"description":52,"items":160},"Testing guides",[161,166,170,174,179,184,187,191,196,201,206,211],{"title":162,"description":163,"icon":164,"to":165},"SMTP tests","Send with swaks, curl, or your app's mailer. Read the raw source back.","heroicons:paper-airplane","\u002Fdocs\u002Fguides\u002Fsend-test-email\u002F",{"title":167,"description":168,"icon":81,"to":169},"API tests","Create an inbox per test over REST, then assert on the message as JSON.","\u002Fdocs\u002Fguides\u002Femail-testing-api\u002F",{"title":171,"description":172,"icon":173,"to":108},"CI assertions","Send from the test suite, poll the API, and assert on subject and body.","heroicons:play-circle",{"title":175,"description":176,"icon":177,"to":178},"E2E flows","The Playwright test clicks the real reset link from the real email.","heroicons:cursor-arrow-rays","\u002Fdocs\u002Fguides\u002Fe2e\u002F",{"title":180,"description":181,"icon":182,"to":183},"Cypress specs","A task waits for the email in Node. The spec types the code it carried.","heroicons:beaker","\u002Fdocs\u002Fguides\u002Fcypress\u002F",{"title":71,"description":185,"icon":73,"to":186},"Authentication verdicts from staging before you touch production DNS.","\u002Fdocs\u002Fguides\u002Fspf-dkim-dmarc\u002F",{"title":188,"description":189,"icon":89,"to":190},"QA signups","A catch-all account hands every test run a fresh address on your domain.","\u002Fdocs\u002Fguides\u002Fcatch-all\u002F",{"title":192,"description":193,"icon":194,"to":195},"Client previews","The same message in Thunderbird and Apple Mail, over plain IMAP.","heroicons:envelope-open","\u002Fdocs\u002Fguides\u002Femail-clients\u002F",{"title":197,"description":198,"icon":199,"to":200},"AI agents","Agents read OTP codes and confirmation links over the API.","heroicons:cpu-chip","\u002Fdocs\u002Fguides\u002Fagents\u002F",{"title":202,"description":203,"icon":204,"to":205},"OTP & magic links","Read the code from the real email. Check that a resend cancels the old one.","heroicons:key","\u002Fdocs\u002Fguides\u002Fotp-magic-links\u002F",{"title":207,"description":208,"icon":209,"to":210},"Nodemailer","Send through a real SMTP server from a Node test. Assert on links, headers, and attachments.","heroicons:code-bracket-square","\u002Fdocs\u002Fguides\u002Fnodemailer\u002F",{"title":212,"description":213,"icon":214,"to":215},"Attachment limits","Why a 25 MB limit fits about 18 MB of files, and how to test the edge.","heroicons:paper-clip","\u002Fdocs\u002Fguides\u002Femail-size-limits\u002F","RvPN6y07Q8lCnVrNZSJekOvgZQ0JFrFExsC5zm08FXY",[218,379,831],{"id":219,"title":220,"body":221,"description":52,"extension":371,"icon":372,"label":373,"meta":374,"navigation":109,"path":375,"seo":376,"stem":377,"__hash__":378},"snippets\u002Fsnippets\u002F1.curl.md","Curl",{"type":222,"value":223,"toc":369},"minimark",[224,365],[225,226,230],"pre",{"className":227,"code":228,"language":229,"meta":52,"style":52},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# create an inbox\ncurl -X POST https:\u002F\u002Fapi.smtp.dev\u002Faccounts \\\n  -H \"X-API-KEY: $SMTP_DEV_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"address\": \"qa@example.com\", \"password\": \"use-a-secret\"}'\n\n# your app sends to it, then read what arrived\ncurl \"https:\u002F\u002Fapi.smtp.dev\u002Faccounts\u002F$ACCOUNT\u002Fmailboxes\u002F$INBOX\u002Fmessages\" \\\n  -H \"X-API-KEY: $SMTP_DEV_API_KEY\"\n","bash",[231,232,233,242,263,284,298,313,319,325,351],"code",{"__ignoreMap":52},[234,235,238],"span",{"class":236,"line":237},"line",1,[234,239,241],{"class":240},"sHwdD","# create an inbox\n",[234,243,245,249,253,256,259],{"class":236,"line":244},2,[234,246,248],{"class":247},"sBMFI","curl",[234,250,252],{"class":251},"sfazB"," -X",[234,254,255],{"class":251}," POST",[234,257,258],{"class":251}," https:\u002F\u002Fapi.smtp.dev\u002Faccounts",[234,260,262],{"class":261},"sTEyZ"," \\\n",[234,264,266,269,273,276,279,282],{"class":236,"line":265},3,[234,267,268],{"class":251},"  -H",[234,270,272],{"class":271},"sMK4o"," \"",[234,274,275],{"class":251},"X-API-KEY: ",[234,277,278],{"class":261},"$SMTP_DEV_API_KEY",[234,280,281],{"class":271},"\"",[234,283,262],{"class":261},[234,285,287,289,291,294,296],{"class":236,"line":286},4,[234,288,268],{"class":251},[234,290,272],{"class":271},[234,292,293],{"class":251},"Content-Type: application\u002Fjson",[234,295,281],{"class":271},[234,297,262],{"class":261},[234,299,301,304,307,310],{"class":236,"line":300},5,[234,302,303],{"class":251},"  -d",[234,305,306],{"class":271}," '",[234,308,309],{"class":251},"{\"address\": \"qa@example.com\", \"password\": \"use-a-secret\"}",[234,311,312],{"class":271},"'\n",[234,314,316],{"class":236,"line":315},6,[234,317,318],{"emptyLinePlaceholder":109},"\n",[234,320,322],{"class":236,"line":321},7,[234,323,324],{"class":240},"# your app sends to it, then read what arrived\n",[234,326,328,330,332,335,338,341,344,347,349],{"class":236,"line":327},8,[234,329,248],{"class":247},[234,331,272],{"class":271},[234,333,334],{"class":251},"https:\u002F\u002Fapi.smtp.dev\u002Faccounts\u002F",[234,336,337],{"class":261},"$ACCOUNT",[234,339,340],{"class":251},"\u002Fmailboxes\u002F",[234,342,343],{"class":261},"$INBOX",[234,345,346],{"class":251},"\u002Fmessages",[234,348,281],{"class":271},[234,350,262],{"class":261},[234,352,354,356,358,360,362],{"class":236,"line":353},9,[234,355,268],{"class":251},[234,357,272],{"class":271},[234,359,275],{"class":251},[234,361,278],{"class":261},[234,363,364],{"class":271},"\"\n",[366,367,368],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":52,"searchDepth":244,"depth":244,"links":370},[],"md","simple-icons:curl","cURL",{},"\u002Fsnippets\u002Fcurl",{"description":52},"snippets\u002F1.curl","0Xmh2yp6-7JjxLkswky7j84DxsnecdzYb0hA4Gqy2NI",{"id":380,"title":381,"body":382,"description":52,"extension":371,"icon":824,"label":825,"meta":826,"navigation":109,"path":827,"seo":828,"stem":829,"__hash__":830},"snippets\u002Fsnippets\u002F2.node.md","Node",{"type":222,"value":383,"toc":822},[384,819],[225,385,389],{"className":386,"code":387,"language":388,"meta":52,"style":52},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const transport = nodemailer.createTransport({\n  host: 'send.smtp.dev',\n  port: 587,\n  requireTLS: true,\n  auth: { user: 'ci@example.com', pass: process.env.SMTP_DEV_PASSWORD },\n})\n\nawait transport.sendMail({\n  from: 'ci@example.com',\n  to: 'qa@example.com',\n  subject: `Welcome ${Date.now()}`,\n  text: 'Confirm your address: https:\u002F\u002Fexample.com\u002Fconfirm\u002Fabc123',\n})\n\n\u002F\u002F read it back over the API, newest first\nconst { member } = await fetch(\n  `https:\u002F\u002Fapi.smtp.dev\u002Faccounts\u002F${account}\u002Fmailboxes\u002F${inbox}\u002Fmessages`,\n  {\n    headers: { 'X-API-KEY': process.env.SMTP_DEV_API_KEY },\n  },\n).then(res => res.json())\n\nassert.match(member[0].text, \u002F\\\u002Fconfirm\\\u002F\u002F)\n","js",[231,390,391,419,439,452,465,511,519,523,541,556,573,606,623,630,635,641,665,696,702,734,740,771,776],{"__ignoreMap":52},[234,392,393,397,400,403,406,409,413,416],{"class":236,"line":237},[234,394,396],{"class":395},"spNyl","const",[234,398,399],{"class":261}," transport ",[234,401,402],{"class":271},"=",[234,404,405],{"class":261}," nodemailer",[234,407,408],{"class":271},".",[234,410,412],{"class":411},"s2Zo4","createTransport",[234,414,415],{"class":261},"(",[234,417,418],{"class":271},"{\n",[234,420,421,425,428,430,433,436],{"class":236,"line":244},[234,422,424],{"class":423},"swJcz","  host",[234,426,427],{"class":271},":",[234,429,306],{"class":271},[234,431,432],{"class":251},"send.smtp.dev",[234,434,435],{"class":271},"'",[234,437,438],{"class":271},",\n",[234,440,441,444,446,450],{"class":236,"line":265},[234,442,443],{"class":423},"  port",[234,445,427],{"class":271},[234,447,449],{"class":448},"sbssI"," 587",[234,451,438],{"class":271},[234,453,454,457,459,463],{"class":236,"line":286},[234,455,456],{"class":423},"  requireTLS",[234,458,427],{"class":271},[234,460,462],{"class":461},"sfNiH"," true",[234,464,438],{"class":271},[234,466,467,470,472,475,478,480,482,485,487,490,493,495,498,500,503,505,508],{"class":236,"line":300},[234,468,469],{"class":423},"  auth",[234,471,427],{"class":271},[234,473,474],{"class":271}," {",[234,476,477],{"class":423}," user",[234,479,427],{"class":271},[234,481,306],{"class":271},[234,483,484],{"class":251},"ci@example.com",[234,486,435],{"class":271},[234,488,489],{"class":271},",",[234,491,492],{"class":423}," pass",[234,494,427],{"class":271},[234,496,497],{"class":261}," process",[234,499,408],{"class":271},[234,501,502],{"class":261},"env",[234,504,408],{"class":271},[234,506,507],{"class":261},"SMTP_DEV_PASSWORD ",[234,509,510],{"class":271},"},\n",[234,512,513,516],{"class":236,"line":315},[234,514,515],{"class":271},"}",[234,517,518],{"class":261},")\n",[234,520,521],{"class":236,"line":321},[234,522,318],{"emptyLinePlaceholder":109},[234,524,525,529,532,534,537,539],{"class":236,"line":327},[234,526,528],{"class":527},"s7zQu","await",[234,530,531],{"class":261}," transport",[234,533,408],{"class":271},[234,535,536],{"class":411},"sendMail",[234,538,415],{"class":261},[234,540,418],{"class":271},[234,542,543,546,548,550,552,554],{"class":236,"line":353},[234,544,545],{"class":423},"  from",[234,547,427],{"class":271},[234,549,306],{"class":271},[234,551,484],{"class":251},[234,553,435],{"class":271},[234,555,438],{"class":271},[234,557,559,562,564,566,569,571],{"class":236,"line":558},10,[234,560,561],{"class":423},"  to",[234,563,427],{"class":271},[234,565,306],{"class":271},[234,567,568],{"class":251},"qa@example.com",[234,570,435],{"class":271},[234,572,438],{"class":271},[234,574,576,579,581,584,587,590,593,595,598,601,604],{"class":236,"line":575},11,[234,577,578],{"class":423},"  subject",[234,580,427],{"class":271},[234,582,583],{"class":271}," `",[234,585,586],{"class":251},"Welcome ",[234,588,589],{"class":271},"${",[234,591,592],{"class":261},"Date",[234,594,408],{"class":271},[234,596,597],{"class":411},"now",[234,599,600],{"class":261},"()",[234,602,603],{"class":271},"}`",[234,605,438],{"class":271},[234,607,609,612,614,616,619,621],{"class":236,"line":608},12,[234,610,611],{"class":423},"  text",[234,613,427],{"class":271},[234,615,306],{"class":271},[234,617,618],{"class":251},"Confirm your address: https:\u002F\u002Fexample.com\u002Fconfirm\u002Fabc123",[234,620,435],{"class":271},[234,622,438],{"class":271},[234,624,626,628],{"class":236,"line":625},13,[234,627,515],{"class":271},[234,629,518],{"class":261},[234,631,633],{"class":236,"line":632},14,[234,634,318],{"emptyLinePlaceholder":109},[234,636,638],{"class":236,"line":637},15,[234,639,640],{"class":240},"\u002F\u002F read it back over the API, newest first\n",[234,642,644,646,648,651,653,656,659,662],{"class":236,"line":643},16,[234,645,396],{"class":395},[234,647,474],{"class":271},[234,649,650],{"class":261}," member ",[234,652,515],{"class":271},[234,654,655],{"class":271}," =",[234,657,658],{"class":527}," await",[234,660,661],{"class":411}," fetch",[234,663,664],{"class":261},"(\n",[234,666,668,671,673,675,678,680,682,684,687,689,691,694],{"class":236,"line":667},17,[234,669,670],{"class":271},"  `",[234,672,334],{"class":251},[234,674,589],{"class":271},[234,676,677],{"class":261},"account",[234,679,515],{"class":271},[234,681,340],{"class":251},[234,683,589],{"class":271},[234,685,686],{"class":261},"inbox",[234,688,515],{"class":271},[234,690,346],{"class":251},[234,692,693],{"class":271},"`",[234,695,438],{"class":271},[234,697,699],{"class":236,"line":698},18,[234,700,701],{"class":271},"  {\n",[234,703,705,708,710,712,714,717,719,721,723,725,727,729,732],{"class":236,"line":704},19,[234,706,707],{"class":423},"    headers",[234,709,427],{"class":271},[234,711,474],{"class":271},[234,713,306],{"class":271},[234,715,716],{"class":423},"X-API-KEY",[234,718,435],{"class":271},[234,720,427],{"class":271},[234,722,497],{"class":261},[234,724,408],{"class":271},[234,726,502],{"class":261},[234,728,408],{"class":271},[234,730,731],{"class":261},"SMTP_DEV_API_KEY ",[234,733,510],{"class":271},[234,735,737],{"class":236,"line":736},20,[234,738,739],{"class":271},"  },\n",[234,741,743,746,748,751,753,757,760,763,765,768],{"class":236,"line":742},21,[234,744,745],{"class":261},")",[234,747,408],{"class":271},[234,749,750],{"class":411},"then",[234,752,415],{"class":261},[234,754,756],{"class":755},"sHdIc","res",[234,758,759],{"class":395}," =>",[234,761,762],{"class":261}," res",[234,764,408],{"class":271},[234,766,767],{"class":411},"json",[234,769,770],{"class":261},"())\n",[234,772,774],{"class":236,"line":773},22,[234,775,318],{"emptyLinePlaceholder":109},[234,777,779,782,784,787,790,793,796,798,801,803,806,809,812,814,817],{"class":236,"line":778},23,[234,780,781],{"class":261},"assert",[234,783,408],{"class":271},[234,785,786],{"class":411},"match",[234,788,789],{"class":261},"(member[",[234,791,792],{"class":448},"0",[234,794,795],{"class":261},"]",[234,797,408],{"class":271},[234,799,800],{"class":261},"text",[234,802,489],{"class":271},[234,804,805],{"class":271}," \u002F",[234,807,808],{"class":261},"\\\u002F",[234,810,811],{"class":251},"confirm",[234,813,808],{"class":261},[234,815,816],{"class":271},"\u002F",[234,818,518],{"class":261},[366,820,821],{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":52,"searchDepth":244,"depth":244,"links":823},[],"simple-icons:nodedotjs","Node.js",{},"\u002Fsnippets\u002Fnode",{"description":52},"snippets\u002F2.node","Ur_RJQ9Kk_IVgxfjJ7qQ4E71Qwj-mgYbh7PQaOlhu3I",{"id":832,"title":833,"body":834,"description":52,"extension":371,"icon":1166,"label":833,"meta":1167,"navigation":109,"path":1168,"seo":1169,"stem":1170,"__hash__":1171},"snippets\u002Fsnippets\u002F3.python.md","Python",{"type":222,"value":835,"toc":1164},[836,1161],[225,837,841],{"className":838,"code":839,"language":840,"meta":52,"style":52},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","msg = EmailMessage()\nmsg[\"From\"], msg[\"To\"] = \"ci@example.com\", \"qa@example.com\"\nmsg[\"Subject\"] = \"Reset your password\"\nmsg.set_content(\"https:\u002F\u002Fexample.com\u002Freset\u002Fabc123\")\n\nwith smtplib.SMTP(\"send.smtp.dev\", 587) as smtp:\n    smtp.starttls()\n    smtp.login(\"ci@example.com\", os.environ[\"SMTP_DEV_PASSWORD\"])\n    smtp.send_message(msg)\n\n# read it back over the API, newest first\nmessages = requests.get(\n    f\"https:\u002F\u002Fapi.smtp.dev\u002Faccounts\u002F{account}\u002Fmailboxes\u002F{inbox}\u002Fmessages\",\n    headers={\"X-API-KEY\": os.environ[\"SMTP_DEV_API_KEY\"]},\n).json()[\"member\"]\n","python",[231,842,843,856,904,928,948,952,988,1000,1039,1054,1058,1063,1080,1108,1141],{"__ignoreMap":52},[234,844,845,848,850,853],{"class":236,"line":237},[234,846,847],{"class":261},"msg ",[234,849,402],{"class":271},[234,851,852],{"class":411}," EmailMessage",[234,854,855],{"class":271},"()\n",[234,857,858,861,864,866,869,871,874,877,879,881,884,886,888,890,892,894,896,898,900,902],{"class":236,"line":244},[234,859,860],{"class":261},"msg",[234,862,863],{"class":271},"[",[234,865,281],{"class":271},[234,867,868],{"class":251},"From",[234,870,281],{"class":271},[234,872,873],{"class":271},"],",[234,875,876],{"class":261}," msg",[234,878,863],{"class":271},[234,880,281],{"class":271},[234,882,883],{"class":251},"To",[234,885,281],{"class":271},[234,887,795],{"class":271},[234,889,655],{"class":271},[234,891,272],{"class":271},[234,893,484],{"class":251},[234,895,281],{"class":271},[234,897,489],{"class":271},[234,899,272],{"class":271},[234,901,568],{"class":251},[234,903,364],{"class":271},[234,905,906,908,910,912,915,917,919,921,923,926],{"class":236,"line":265},[234,907,860],{"class":261},[234,909,863],{"class":271},[234,911,281],{"class":271},[234,913,914],{"class":251},"Subject",[234,916,281],{"class":271},[234,918,795],{"class":271},[234,920,655],{"class":271},[234,922,272],{"class":271},[234,924,925],{"class":251},"Reset your password",[234,927,364],{"class":271},[234,929,930,932,934,937,939,941,944,946],{"class":236,"line":286},[234,931,860],{"class":261},[234,933,408],{"class":271},[234,935,936],{"class":411},"set_content",[234,938,415],{"class":271},[234,940,281],{"class":271},[234,942,943],{"class":251},"https:\u002F\u002Fexample.com\u002Freset\u002Fabc123",[234,945,281],{"class":271},[234,947,518],{"class":271},[234,949,950],{"class":236,"line":300},[234,951,318],{"emptyLinePlaceholder":109},[234,953,954,957,960,962,965,967,969,971,973,975,977,979,982,985],{"class":236,"line":315},[234,955,956],{"class":527},"with",[234,958,959],{"class":261}," smtplib",[234,961,408],{"class":271},[234,963,964],{"class":411},"SMTP",[234,966,415],{"class":271},[234,968,281],{"class":271},[234,970,432],{"class":251},[234,972,281],{"class":271},[234,974,489],{"class":271},[234,976,449],{"class":448},[234,978,745],{"class":271},[234,980,981],{"class":527}," as",[234,983,984],{"class":261}," smtp",[234,986,987],{"class":271},":\n",[234,989,990,993,995,998],{"class":236,"line":321},[234,991,992],{"class":261},"    smtp",[234,994,408],{"class":271},[234,996,997],{"class":411},"starttls",[234,999,855],{"class":271},[234,1001,1002,1004,1006,1009,1011,1013,1015,1017,1019,1022,1024,1027,1029,1031,1034,1036],{"class":236,"line":327},[234,1003,992],{"class":261},[234,1005,408],{"class":271},[234,1007,1008],{"class":411},"login",[234,1010,415],{"class":271},[234,1012,281],{"class":271},[234,1014,484],{"class":251},[234,1016,281],{"class":271},[234,1018,489],{"class":271},[234,1020,1021],{"class":411}," os",[234,1023,408],{"class":271},[234,1025,1026],{"class":423},"environ",[234,1028,863],{"class":271},[234,1030,281],{"class":271},[234,1032,1033],{"class":251},"SMTP_DEV_PASSWORD",[234,1035,281],{"class":271},[234,1037,1038],{"class":271},"])\n",[234,1040,1041,1043,1045,1048,1050,1052],{"class":236,"line":353},[234,1042,992],{"class":261},[234,1044,408],{"class":271},[234,1046,1047],{"class":411},"send_message",[234,1049,415],{"class":271},[234,1051,860],{"class":411},[234,1053,518],{"class":271},[234,1055,1056],{"class":236,"line":558},[234,1057,318],{"emptyLinePlaceholder":109},[234,1059,1060],{"class":236,"line":575},[234,1061,1062],{"class":240},"# read it back over the API, newest first\n",[234,1064,1065,1068,1070,1073,1075,1078],{"class":236,"line":608},[234,1066,1067],{"class":261},"messages ",[234,1069,402],{"class":271},[234,1071,1072],{"class":261}," requests",[234,1074,408],{"class":271},[234,1076,1077],{"class":411},"get",[234,1079,664],{"class":271},[234,1081,1082,1085,1088,1091,1093,1095,1097,1099,1101,1103,1106],{"class":236,"line":625},[234,1083,1084],{"class":395},"    f",[234,1086,1087],{"class":251},"\"https:\u002F\u002Fapi.smtp.dev\u002Faccounts\u002F",[234,1089,1090],{"class":448},"{",[234,1092,677],{"class":411},[234,1094,515],{"class":448},[234,1096,340],{"class":251},[234,1098,1090],{"class":448},[234,1100,686],{"class":411},[234,1102,515],{"class":448},[234,1104,1105],{"class":251},"\u002Fmessages\"",[234,1107,438],{"class":271},[234,1109,1110,1112,1115,1117,1119,1121,1123,1125,1127,1129,1131,1133,1136,1138],{"class":236,"line":632},[234,1111,707],{"class":755},[234,1113,1114],{"class":271},"={",[234,1116,281],{"class":271},[234,1118,716],{"class":251},[234,1120,281],{"class":271},[234,1122,427],{"class":271},[234,1124,1021],{"class":411},[234,1126,408],{"class":271},[234,1128,1026],{"class":423},[234,1130,863],{"class":271},[234,1132,281],{"class":271},[234,1134,1135],{"class":251},"SMTP_DEV_API_KEY",[234,1137,281],{"class":271},[234,1139,1140],{"class":271},"]},\n",[234,1142,1143,1146,1148,1151,1153,1156,1158],{"class":236,"line":637},[234,1144,1145],{"class":271},").",[234,1147,767],{"class":411},[234,1149,1150],{"class":271},"()[",[234,1152,281],{"class":271},[234,1154,1155],{"class":251},"member",[234,1157,281],{"class":271},[234,1159,1160],{"class":271},"]\n",[366,1162,1163],{},"html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":52,"searchDepth":244,"depth":244,"links":1165},[],"simple-icons:python",{},"\u002Fsnippets\u002Fpython",{"description":52},"snippets\u002F3.python","-W_VN0jD1FFnChccp15MVAMZsmwx_9WL9-3m9gDOKn0",{"data":1173,"body":1174},{},{"type":1175,"children":1176},"root",[1177],{"type":1178,"tag":1179,"props":1180,"children":1181},"element","p",{},[1182,1184],{"type":800,"value":1183},"Email Testing for ",{"type":1178,"tag":234,"props":1185,"children":1188},{"className":1186},[1187],"text-(--ui-primary)",[1189],{"type":800,"value":1190},"Developers",{"data":1192,"body":1193},{},{"type":1175,"children":1194},[1195],{"type":1178,"tag":1179,"props":1196,"children":1197},{},[1198],{"type":800,"value":22},{"data":1200,"body":1201},{},{"type":1175,"children":1202},[1203],{"type":1178,"tag":1179,"props":1204,"children":1205},{},[1206],{"type":800,"value":25},{"data":1208,"body":1209},{},{"type":1175,"children":1210},[1211],{"type":1178,"tag":1179,"props":1212,"children":1213},{},[1214],{"type":800,"value":28},{"data":1216,"body":1217},{},{"type":1175,"children":1218},[1219],{"type":1178,"tag":1179,"props":1220,"children":1221},{},[1222,1224,1230,1232,1238],{"type":800,"value":1223},"Only from the receiving end. Send from your server or provider to an address on your sandbox domain, and the message arrives with its raw source and ",{"type":1178,"tag":1225,"props":1226,"children":1227},"a",{"href":186},[1228],{"type":800,"value":1229},"SPF, DKIM, and DMARC results",{"type":800,"value":1231},". It doesn't probe a server from outside, look up blocklists, or predict whether Gmail will file a message as spam. To check a server by hand, the ",{"type":1178,"tag":1225,"props":1233,"children":1235},{"href":1234},"\u002Fdocs\u002Fguides\u002Fsend-test-email\u002F#testing-your-own-server",[1236],{"type":800,"value":1237},"SMTP test guide",{"type":800,"value":1239}," has swaks, curl, and openssl commands that work against any host.",{"data":1241,"body":1242},{},{"type":1175,"children":1243},[1244],{"type":1178,"tag":1179,"props":1245,"children":1246},{},[1247],{"type":800,"value":34},{"data":1249,"body":1250},{},{"type":1175,"children":1251},[1252],{"type":1178,"tag":1179,"props":1253,"children":1254},{},[1255,1257,1263],{"type":800,"value":1256},"Local catchers run per machine. The sandbox is hosted on real domains with real DNS, so CI, staging, and your laptop all hit the same MX path production will. Inbound messages also get SPF, DKIM, and DMARC verdicts, which localhost can't give you. The ",{"type":1178,"tag":1225,"props":1258,"children":1260},{"href":1259},"\u002Fdocs\u002Fguides\u002Flocal-development\u002F",[1261],{"type":800,"value":1262},"fake SMTP server comparison",{"type":800,"value":1264}," puts them side by side.",{"data":1266,"body":1267},{},{"type":1175,"children":1268},[1269],{"type":1178,"tag":1179,"props":1270,"children":1271},{},[1272,1274,1280,1282,1288,1289,1295],{"type":800,"value":1273},"It puts addresses on your own domain, has no message quotas, and includes IMAP and POP3 on every plan. The comparisons list prices, limits, when to stay where you are, and how to move a test suite: ",{"type":1178,"tag":1225,"props":1275,"children":1277},{"href":1276},"\u002Fdocs\u002Falternatives\u002Fmailtrap\u002F",[1278],{"type":800,"value":1279},"Mailtrap",{"type":800,"value":1281},", ",{"type":1178,"tag":1225,"props":1283,"children":1285},{"href":1284},"\u002Fdocs\u002Falternatives\u002Fmailosaur\u002F",[1286],{"type":800,"value":1287},"Mailosaur",{"type":800,"value":1281},{"type":1178,"tag":1225,"props":1290,"children":1292},{"href":1291},"\u002Fdocs\u002Falternatives\u002Fmailinator\u002F",[1293],{"type":800,"value":1294},"Mailinator",{"type":800,"value":408},{"data":1297,"body":1298},{},{"type":1175,"children":1299},[1300],{"type":1178,"tag":1179,"props":1301,"children":1302},{},[1303],{"type":800,"value":43},{"data":1305,"body":1306},{},{"type":1175,"children":1307},[1308],{"type":1178,"tag":1179,"props":1309,"children":1310},{},[1311,1313,1318,1319,1324,1326,1331],{"type":800,"value":1312},"Poll the REST API for new messages, or subscribe over SSE and react when one lands. The ",{"type":1178,"tag":1225,"props":1314,"children":1315},{"href":108},[1316],{"type":800,"value":1317},"CI",{"type":800,"value":1281},{"type":1178,"tag":1225,"props":1320,"children":1321},{"href":178},[1322],{"type":800,"value":1323},"Playwright",{"type":800,"value":1325},", and ",{"type":1178,"tag":1225,"props":1327,"children":1328},{"href":200},[1329],{"type":800,"value":1330},"AI agent",{"type":800,"value":1332}," guides have working examples.",{"data":1334,"body":1335},{},{"type":1175,"children":1336},[1337],{"type":1178,"tag":1179,"props":1338,"children":1339},{},[1340,1342,1348],{"type":800,"value":1341},"SMTP on send.smtp.dev port 587, IMAP on imap.smtp.dev port 993, and POP3 on pop.smtp.dev port 995. The login is the account's full address and its password. The ",{"type":1178,"tag":1225,"props":1343,"children":1345},{"href":1344},"\u002Fdocs\u002Fguides\u002Fimap-pop3\u002F",[1346],{"type":800,"value":1347},"IMAP and POP3 guide",{"type":800,"value":1349}," has the commands for both.",1794505289527]