MailSlurp guide agent setup Title: Wait for emails - receive inbound emails in code Description: Fetch emails and attachments in code by waiting for new emails to arrive. MailSlurp waitFor methods provide automatic long-polling. Canonical URL: https://www.mailslurp.com/guides/wait-for-emails-api/ Markdown URL: https://www.mailslurp.com/guides/wait-for-emails-api.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.