Docs › QA Credentials
Temporary email provider configuration
Which provider is integrated?
QA Random ships with two provider adapters behind a common interface (lib/TempMail/ProviderInterface.php), so providers can be swapped without changing the rest of the site:
| Provider | Account / API key | Best for |
|---|---|---|
| Mail.tm (default) | None. Mailboxes are created automatically through the public API at https://api.mail.tm. | Getting started, low volumes |
| Own domain catch-all (IMAP) | A domain/sub-domain you own with a catch-all mailbox (e.g. Hostinger Business Email) and the PHP imap extension. | Production, paid plans, apps that block disposable domains |
Mail.tm terms and limits (checked November 2026)
- Rate limit: 8 requests per second per IP address. QA Random throttles itself to 6/second and inbox polling to 12 requests per minute per inbox.
- Attribution: a visible link to mail.tm is required — QA Random shows "Temporary inboxes powered by Mail.tm" in the footer.
- Mail.tm does not allow reselling a paid product that only wraps its API, or running a proxy/mirror of it. QA Random adds substantial functionality, but if you sell paid plans with inbox quotas you should contact Mail.tm or switch paid customers to the IMAP provider.
- Public temporary email is not guaranteed: domains rotate, mail may be deleted and the service can be unavailable. It is not suitable for anything confidential.
Where configuration is stored
- Provider selection, inbox lifetime and refresh interval: Admin › Settings (stored in the
system_settingstable). - Provider credentials:
config/config.php→temp_emailsection. This file is blocked from web access. - Per-mailbox passwords/tokens: encrypted (AES-256-GCM) in the
temporary_email_accountstable usingapp.key.
How to test email generation
- Open Admin › Provider integrations and click Test connection — it lists the active domains.
- Generate 10 credentials. Email addresses use one of those domains.
- Click Receive Email on a profile. Status changes to Active.
How to test receiving messages
- From any personal mailbox, send an email to the address shown at the top of the inbox.
- Within about 15 seconds the message appears in the list. Open it to check HTML rendering.
Setting up the IMAP provider
- In Hostinger hPanel create (or use) an email domain such as
test.yourdomain.comand a mailbox, and enable catch-all so every address on that domain is delivered to it. - In hPanel › Advanced › PHP Configuration › Extensions enable imap.
- In
config/config.phpsettemp_email.imap.enabledtotrueand fill indomain,mailbox(e.g.{imap.hostinger.com:993/imap/ssl}INBOX),usernameandpassword. - In Admin › Settings choose Own domain catch-all via IMAP as the provider and run the connection test.
Troubleshooting provider failures
- Connection test fails → check that your server can make outgoing HTTPS requests (Hostinger allows this) and that the provider is online.
- HTTP 429 → too many requests; wait and retry. Reduce the auto-refresh frequency in Admin › Settings.
- HTTP 401 → token expired; QA Random re-authenticates automatically. If it persists the provider may have deleted the mailbox — the user can reactivate it.
- Errors are recorded in
temporary_email_accounts.last_errorand instorage/logs/php-error.log.