MailSlurp logo
Codecept.js mailbox email testing

Real email in Codecept JS tests

Create email accounts during Codeceptjs tests then send and receive email to verify accounts, extract codes, and test applications end-to-end.

Trusted by top companies worldwide

  • Broadcom
  • Scraper
  • Trivago
  • Avast
  • Wolt
  • Panasonic

Free access

E2E email tests

Powerful helper functions for codeception automations.

Test email without mocking

Create and control email accounts in Codeceptjs tests without needing to configure a mailserver or mock any requests

Explore

Reliable E2E tests

Disposable email mailboxes for every test run creates isolated, repeatable integration tests for key app functions

Explore

Real users, real tests

Test critical application functionality like user sign-up, account verification, and transactional email communications

Explore

Native plugin

Official plugin built in with core CodeceptJS devs and standard idioms. Works with Testomat.io and CodeceptUI.

Explore
MailSlurp product screenshot

I.haveNewMailbox()

Natural helpers methods for Codeceptjs that let you create email accounts instantly then send and receive email and attachments.

Validate real signup and OTP flows

Validate real signup and OTP flows

Run end-to-end message assertions against real inboxes and phone numbers instead of mocks.

Preview and review templates

Preview and review templates

Check device rendering, broken links, and content quality before launch windows.

Developer integration

Drop message assertions into Playwright, Cypress, Selenium, or CI

Use SDK helpers inside your existing test runners instead of building mailbox polling and parsing from scratch.

  • Wait for matching email or SMS in test code
  • Extract links, codes, and headers for assertions
  • Run the same patterns locally and in CI

Get your API Key

Get your API Key

Get started with a free account.