# Send email API

Please [see our new sending guide](/guides/sending-emails/) for updated sending or the [`sendEmail` method documentation](/docs/js/).

## Sending with MailSlurp

MailSlurp can send emails and attachments from any inbox you create. You can send email with [MailSlurp](/api/) using the Dashboard's [compose page](https://app.mailslurp.com/), the [REST API](https://app.mailslurp.com/) or the [SDK libraries](/docs/) 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.



```typescript
// 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](/guides/receive-emails/) with MailSlurp's SDK, an [SMTP client](/guides/configure-smtp-email-clients/) or even [with GraphQL](/blog/graphql-api-disposable-email-accounts/).

### Setup

To send an email with MailSlurp you must have at least one inbox to send from.
[Creating an inbox](/guides/creating-inboxes/) is easy and can be done with the API or Dashboard UI.

> Register a [custom domain](/guides/custom-domains/) to send emails from a domain name that you own.
