Videos
Check out our tutorial video series.
Fetch emails and attachments in code by waiting for new emails to arrive. MailSlurp waitFor methods provide automatic long-polling.
MailSlurp has many methods for sending and receiving emails. Here are three main ways to receive emails with MailSlurp.
See the Email Model Specification for available properties and content for emails. See the attachments guide for help with attachments.
EmailControllerApi methods such as and
return existing emails and content from inboxes. Call the
method to return a paginated list of existing emails inside your inboxes. Call the
to fetch an individual email and content.
WaitForControllerApi methods such as hold a connection open until conditions are met - such as a new email arriving. Use wait for methods in code or tests to perform actions and then test expected emails. Here is a example using the Ruby SDK:
Use to ensure only new emails are returned. See the receiving emails guide for more information.
Check out our tutorial video series.
Email and SMS guides for automation and testing.
View github project code for multiple languages.
Latest posts from the MailSlurp team.
Test, build, and automate messaging with a free MailSlurp account.