Mechasm supports IMAP integration to facilitate testing scenarios that require email interaction. This is particularly useful for:
- 2FA/OTP Retrieval: Automatically fetching One-Time Passwords sent via email during sign-up or login flows.
Enabling IMAP Integration
To use these features, you must first enable the integration in your project settings:
- Navigate to your Project Settings.
- Select the Email tab.
- Enter the inbox connection details.
- Select Save email settings.
- Toggle Enable email integration.
mechasm.ai/dashboard/projects/.../settings/imap

Configuration
Configure the inbox directly in the project’s Email tab. Mechasm stores the connection securely for the project.
Connection details
Provide:
- IMAP host: Your provider’s IMAP hostname, such as
imap.gmail.com. - Email or username: The account Mechasm should read.
- Password: The account password or, preferably, an app-specific password.
All three values are required. Update them from the same tab whenever the inbox credentials change.
Using IMAP During Tests
Once setup is complete, you can use IMAP inside your test flows to retrieve verification codes and continue email-based authentication steps.
