Send Transactional Emails in Code or End-to-End Tests.

How to send emails using the Dashboard, API, or SDK clients. Free SMTP mailservers and email accounts to send transactional mail.

  • Table of contents

Please see our new sending guide for updated sending or the sendEmail method documentation.

Sending with MailSlurp

MailSlurp can send emails and attachments from any inbox you create. You can send email with MailSlurp using the Dashboard's compose page, the REST API or the SDK libraries directly from applications or tests.

Filtering bounced recipients

Sending emails to recipients that have bounced in the past will throw an API error. To avoid this use the filterBouncedRecipients flag to filter out any known bad addresses when sending.

// use the `filterBouncedRecipients` to filter
// out previously bounced recipients and avoid errors
await mailslurp.sendEmail(inboxId, {
  to: [recipient, bouncedRecipient],
  filterBouncedRecipients: true,
// will only email `recipient` and will skip a known bounced recipient

Receiving email

You can receive email with MailSlurp's SDK, an SMTP client or even with GraphQL.


To send an email with MailSlurp you must have at least one inbox to send from. Creating an inbox is easy and can be done with the API or Dashboard UI.

Register a custom domain to send emails from a domain name that you own.

Email and SMS Platform
Create a free account in 3 clicks