Mailinator alternatives

mailinator

Mailinator is a popular email testing tool that let’s you create test email accounts. It is used by QA testers and developers to test email processes and application. Mailinator is quite old and lacks many modern features. An alternative is MailSlurp - a free email API with a powerful dashboard and libraries in many common programming languages.

MailSlurp email service

MailSlurp is an email test account service that lets you generate real email addresses in code or using a web app.

dashboard

You can create email addresses, compose emails, send and receive attachments, validate email ratings and more.

analysis

Email in code

You can also send and receive email in tests and coding using the official SDKs. Here is an example in PHP:

public function test_canSendEmail(): void
{
    // create a new inbox
    $inboxController = new MailSlurp\Apis\InboxControllerApi(null, $this->config);
    $inbox = $inboxController->createInbox();

    // send options
    $sendOptions = new MailSlurp\Models\SendEmailOptions();
    $sendOptions->setTo([$inbox->getEmailAddress()]);
    $sendOptions->setSubject("Welcome");
    $sendOptions->setIsHtml(true);
    // (you can use normal strings too)
    $sendOptions->setBody(<<<EOF
        <html>
            <h1>MailSlurp supports HTML</h1>
        </html>
    EOF);

    // send
    $inboxController->sendEmail($inbox->getId(), $sendOptions);
}

Get started

Create a free account to get started.