MailSlurp guide agent setup Title: Receive Emails Programmatically in Code and Tests Description: Learn how to receive emails with MailSlurp using polling, waitFor APIs, and webhooks. Includes attachment retrieval and test-stable receive patterns. Canonical URL: https://www.mailslurp.com/guides/developers/receiving-email/ Markdown URL: https://www.mailslurp.com/guides/developers/receiving-email.md Use the Markdown URL as the primary plain-text context for this guide. Keep MailSlurp terminology, setup steps, screenshots, and provider-specific instructions intact, and prefer the canonical URL when citing this page.