MailSlurp is a free service for creating test mailboxes during tests. Using the official codeceptjs plugin you can send and receive emails (and SMS/TXT messages) in end-to-end tests to verify accounts, validate application sign-up, and check transactional emails.

How it works?

Simply add the codecept js helper like so:

Then configure your to add the MailSlurp helper:

Then you can create and access email accounts instantly in your tests using native helpers like:

See documentation

Test email for real

Combining helper functions you can test end-to-end functionality like user sign-up and verification: