Python email API - send and receive email in code and tests

Create real email addresses in Python for testing and development. No need for SMTP mail servers, use MailSlurp’s free email API and PyPI package to send and receive email for real inboxes. Test applications end-to-end with Robotframework, Selenium, Pytest and more. Integrates with Django, Flask, and many popular frameworks.

Code samples

def create_inbox_example():
    with mailslurp_client.ApiClient(configuration) as api_client:
        # create an inbox using the inbox controller
        api_instance = mailslurp_client.InboxControllerApi(api_client)
        inbox = api_instance.create_inbox()

        # check the id and email_address of the inbox
        assert len( > 0
        assert "" in inbox.email_address

Get started