Send and Receive emails in code.

Email addresses on demand. Send and Receive emails and attachments via REST API, SDK Library, or Visual Dashboard. Go beyond SMTP.

Official Libraries

Email APIs made simple

MailSlurp lets you create real email addresses on-demand. Generate accounts, then send and receive emails and attachments from applications or tests.

Example
// create email addresses on demand
const { emailAddress, id } = await mailslurp.createInbox();

// receive emails in javascript
const { body, subject } = await mailslurp.waitForLatestEmail(inboxId);

// send emails in javascript
await mailslurp.sendEmail(inboxId, {
  to: 'test@example.com',
  subject: 'hello',
});
// create email addresses on demand
$inbox = $mailslurp->createInbox();

// receive emails in php
$email = $mailslurp->waitForLatestEmail($inbox.id)

// send emails in php
$email = $mailslurp->sendEmail($inbox.id, $options)
# create email addresses on demand
inbox = mailslurp.create_inbox()

# receive emails in ruby
email = mailslurp.wait_for_latest_email(inbox.id)

# send emails in ruby
mailslurp.send_email(inbox.id, options)
# create email addresses on demand
inbox = mailslurp.create_inbox()

# receive emails in python
email = mailslurp.wait_for_latest_email(inbox.id)

# send emails in python
mailslurp.send_email(inbox.id, options)
// create addresses on demand
Inbox inbox = mailslurp.createInbox()

// receive emails in Java
Email email = mailslurp.waitForLatestEmail(inbox.id)

// send emails in Java
mailslurp.sendEmail(inbox.id, options)
// create addresses on demand
Inbox inbox = mailslurp.CreateInbox()

// receive emails in C#
Email email = mailslurp.WaitForLatestEmail(inbox.id)

// send emails in C#
mailslurp.SendEmail(inbox.id, options)
// create addresses on demand
[apiInstance createInboxWithEmailAddress:emailAddress
  completionHandler: ^(OAIInbox* output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error", error);
    }
}];
// and much more!
// create addresses on demand
inbox, _ := mailslurp.CreateInbox

// receive emails in Golang
email, _ := mailslurp.WaitForLatestEmail(inbox.id)

// send emails in Golang
mailslurp.SendEmail(inbox.id, options)
Trusted By
Trusted By MailSlurp

Use Cases

Send and receive emails from private email addresses that you can create on demand. Use MailSlurp in tests, servers, apps or with our visual dashboard.

Powerful Web UI

You can do everything online using our email dashboard. View attachments, spam ratings, and HTML previews.

Need to white-label an email dashboard for your customers? We can do that.

Try it now →