Test any email, SMS or user action with one API
Mailosaur removes the frustration of testing everything a user might do. Test password resets, replies, two-factor logins, and more.
npm create mailosaur@latest
Trusted by global brands and up-and-comers alike
Automated testing that won't take all week
Email testing
Create end-to-end tests of all-important processes. Test account verification emails, password resets, email tracking, and more.
SMS testing
There’s more to customer comms than email. Simulate SMS messages for identity verification, alerts, security, and promotional messages.
Email screenshots
Prevent formatting errors. Instantly see how your email will look to any recipient, no matter what email client they use.
Works with any testing framework
Mailosaur works with the tools you already use. It's quick and easy to add powerful features to your test setup.
// Step 1: Send an email into Mailosaur
// Step 2: Fetch your message via Mailosaur
const MailosaurClient = require('mailosaur');
const mailosaur = new MailosaurClient('YOUR_API_KEY');
const criteria = {
sentTo: 'anything@YOUR_SERVER_ID.mailosaur.net',
};
const email = await mailosaur.messages
.get(serverId, criteria);
// Step 3: Complete the process
expect(email.subject).toBe('My password reset');
// Step 1: Send an email into Mailosaur
// Step 2: Fetch your message via Mailosaur
const MailosaurClient = require('mailosaur');
const mailosaur = new MailosaurClient('YOUR_API_KEY');
const criteria = {
sentTo: 'anything@YOUR_SERVER_ID.mailosaur.net',
};
const email = await mailosaur.messages
.get(serverId, criteria);
// Step 3: Complete the process
expect(email.subject).toBe('My password reset');
Get going immediately with our powerful API, designed for automation
Whether you’re working with Cypress, Selenium, Webdriver.io, Robot Framework or anything else, Mailosaur's capable API helps get your tests running in minutes.
Plug and play
Ready-made code snippets can have you testing in minutes.
Here to get you started
Our engineers can help you get your proof of concept up and running.
Your complete email and SMS testing tool
Easily ensure every customer communication is working as intended.
Unlimited email addresses
Use a unique email address for every test, build, team member, environment, or use case. It’s up to you.
Two-factor authentication
Automate one-time password testing across email, app, and SMS with just a few lines of code.
Global SMS coverage
Access international mobile numbers that are unique to your business, so you don’t use your own phone.
Simple, effective, fast
Test more thoroughly and save hours a week in the process.
Deliverability
Stop your emails ending up in the spam folder. See what’s causing issues and why.
Simulate real scenarios
Don’t just test messages in isolation. Check everything works across customer journeys, like account recovery or purchase updates.
Get going in minutes
Use comprehensive guides and the expertise of our team to get your tests running quickly.
Relied on by customers
Mailosaur exists to solve a business challenge. Our customers tell us it does just that.
This is the easiest solution to test your emails and I can show you how it works in 5 minutes.
Getting started with Mailosaur proved to be remarkably easy and convenient.
The single biggest reason we would recommend Mailosaur to others, would be for its overall ease of use and comprehensive features.