MailSlurp logo

MailSlurp examples by task

Documentation navigation
Search documentation

Find runnable projects for email and SMS testing, load testing, device rendering, extraction and messaging protocols.

View MarkdownAgent setup

Choose the workflow first, then select a project in your language or framework. Each repository directory contains its own setup and run instructions. Set API keys on the test runner or server, and use the resource prerequisites in its README before running live examples.

Task Example project Documentation
Complete email signup in a browser Playwright email testing Playwright
Organize email and SMS MFA with page objects Java, Selenium and TestNG POM guide
Receive an SMS OTP Playwright SMS testing Phone numbers and SMS
Reserve a phone for a parallel test JavaScript workflow recipes Phone pools
Match and extract an email OTP with AI Playwright AI email testing AI message testing
Extract fields from invoice attachments JavaScript workflow recipes PDF extraction
Generate signup traffic with k6 k6 email load test Load testing
Generate signup traffic with Locust Python Locust Load testing
Check SMS delivery across a cohort JMeter SMS delivery tests JMeter guide
Import and render emails on real clients Device rendering Sources and imports
Save screenshots and fail incomplete CI renders JavaScript workflow recipes Render CI checks
Measure inbox placement and monitor a domain Placement and domain examples Placement automation
Send using an existing SMTP library Node.js Nodemailer IMAP and SMTP

Choose a validation level

Run compilation and local behavior checks first when the project provides them. A local test with simulated responses checks code behavior; a live test additionally exercises the MailSlurp API and any external delivery path involved. Check which mode a project's run command uses, particularly for phone provisioning, AI, rendering and load tests that consume allowances.

For a production receiver, start with webhook recovery. For an agent runtime, follow workers and human review and MCP setup. Browse all example projects for more frameworks and SDK languages.