Agent Recipes
Use these patterns to connect Mailinator to AI-agent workflows. Prefer Private Domains for any workflow involving authentication, tokens, OTPs, reset links, or private test data.
Create an account, fetch an OTP, and complete signup
- Generate a unique inbox name, such as
agent-signup-<run-id>. - Have the agent submit the signup form using that Mailinator address.
- Retrieve the latest message from the inbox with the Mailinator CLI, Mailinator MCP, or the Mailinator API.
- Extract the OTP code from the message body.
- Submit the OTP in the application.
- Confirm that the account reaches the expected signed-in or verified state.
Reset a password with an agent
- Start a password reset flow for a test user.
- Wait for the reset email in the user's Mailinator inbox.
- Extract the reset link.
- Have the agent open the reset link.
- Set a new test password.
- Confirm the old password no longer works and the new password does.
Validate transactional email in a coding-agent workflow
- Have the agent make a code change that triggers an email.
- Run the application or automated test.
- Retrieve the generated email from Mailinator.
- Assert on the subject, sender, body, links, and environment-specific URLs.
- Ask the agent to fix the implementation if the email is missing or malformed.
Use Mailinator MCP with an agent
- Configure the Mailinator MCP server for the agent.
- Give the agent access only to test inboxes and test domains.
- Ask the agent to inspect the expected inbox.
- Have the agent extract the needed OTP, link, or message content.
- Continue the browser, API, or code workflow using that value.
Test SSO with Universal IDP
- Configure your application to trust Mailinator Universal IDP in a test environment.
- Start the SSO login flow.
- Use a public or private-domain Mailinator identity, depending on the test.
- Confirm that your application accepts the signed ID token.
- Assert that the resulting user session has the expected email, claims, and permissions.
For safety guidance, see Agent Safety and Privacy.