Wait for a matching email
wait_for_emailWait up to 25 seconds for an email sent to an exact recipient, with optional exact sender, subject substring, and RFC3339 lower-bound filters. Returns the first matching email with its body. Useful for deterministic OTP, magic-link, and signup tests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Optional RFC3339 timestamp; ignore older emails | |
| sender | No | Optional exact envelope sender | |
| recipient | Yes | Exact recipient email address | |
| subdomain_id | Yes | Subdomain ID | |
| timeout_seconds | No | How long to wait, in seconds | |
| subject_contains | No | Optional case-insensitive subject substring |