Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

MailSlurp Examples 📨

Create email addresses on demand then send and receive emails in code and tests. Test apps end-to-end with real email addresses

This repository contains examples of MailSlurp usage with a range of different languages and frameworks. See the or Makefile in each module for more information.

See developer page for more guides and documentation. If you notice an issue in the examples please open an issue, pull request, or contact support.


Running locally

If you wish to run these examples yourself:

  • clone the repository.
  • create an .env file in the root directory containing API_KEY=your-mailslurp-api-key.
  • to run an example cd into the directory and run make test or API_KEY=your-api-key make test.


Examples are tested with each major release and on a schedule using Github actions and CircleCI.