If you have a custom email address that matches your companies domain you may wish to use it programmatically in code or tests. With MailSlurp you can keep access to your custom email address and also access it in scripts and code.

Custom domain setup

First register a free account with MailSlurp. Add your domain and follow the steps to verify your domain.

Setup API access

You can call the MailSlurp email API using the REST API or one of the many official SDK libraries.

Configure your client with the API Key or set the REST header to your value.

Example code

MailSlurp supports many languages and also has a web app you can use instead:

Here is a Javascript example using Cypress JS to receive emails.