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 README.md
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.
Projects
- csharp-dotnet-core2-selenium
- csharp-dotnet-core3
- csharp-smtp-client-xunit
- csharp-specflow-mstest-selenium
- dart-email-testing
- deno-email-api
- elixir-phoenix-hound
- fsharp-email-mstest
- golang-email-test
- golang-smtp-client-test
- java-gradle-junit5
- java-jakarta-mail
- java-maven-junit4
- java-maven-selenium
- java-serenity-jbehave
- java-spring-boot
- java-testng-selenium
- javascript-axios
- javascript-codecept-js
- javascript-cypress-js
- javascript-cypress-mailslurp-plugin
- javascript-cypress-sms-testing
- javascript-jest-puppeteer
- javascript-testcafe
- javascript-webdriver-io
- kotlin-email-test-example
- nim-unittests
- nodejs-nodemailer-smtp-example
- nodejs-smtp-email-attachments-test
- php-codeception-acceptance
- php-composer-phpunit
- php-laravel-email-examples
- playwright-email-testing
- playwright-sms-testing
- powershell-email-send-ps1
- python2-pytest
- python3-robotframework
- rlang-email-sending-in-r
- ruby-capybara-cucumber-selenium
- ruby-cucumber-test
- ruby-rspec
- rust-selenium-email-testing
- scala-scalatest-email
- sendgrid
- shortcodes
- swift-email-smtp-examples
- visualbasic
Running locally
If you wish to run these examples yourself:
- clone the repository.
- create an
.env
file in the root directory containingAPI_KEY=your-mailslurp-api-key
. - to run an example
cd
into the directory and runmake test
orAPI_KEY=your-api-key make test
.
CI
Examples are tested with each major release and on a schedule using Github actions and CircleCI.