Facteur and Mailisk
Mailisk receives test emails in namespaces. It also documents SMS testing. Here is what it publishes, then what Facteur does.
What Mailisk publishes
Each line is something Mailisk publishes. It carries the address of the page where we read it and the date we read it. What we could not check is not here. These pages change: read the source again before you decide.
-
01
Mailisk calls its inboxes "namespaces". An email sent to anything@{namespace}.mailisk.net lands in the namespace inbox.
-
02
Each namespace allows unlimited email addresses.
-
03
The inbox search response lists attachments with their id, filename, content type and size.
-
04
The documentation describes an SMS testing section, with endpoints to list numbers, search messages and simulate an SMS.
-
05
The free plan shows 500 received emails, 1 namespace and 1 day of email retention.
-
06
The extra-volume rates start at $0.25 per 1,000 received emails per month, and at $0.05 per SMS per month.
-
07
The FAQ says paid plans temporarily tolerate usage above the limit with no hard cap, and that Mailisk reaches out if it happens often.
-
08
Mailisk's Node client installs with npm install --save-dev mailisk and is built with new MailiskClient({ apiKey }). Its searchInbox(namespace, { to_addr_prefix, subject_includes, ... }) method waits by default until at least one email arrives, five minutes at most.
The same test, with one then the other
Both APIs wait for the message on the server side, so the shape of the test does not change. What changes: the address targets the domain of the Facteur inbox, and the code arrives already extracted from the message.
const { MailiskClient } = require('mailisk');
const mailisk = new MailiskClient({ apiKey: process.env.MAILISK_API_KEY });
// searchInbox waits by default until at least one email arrives.
const { data: emails } = await mailisk.searchInbox(namespace, {
to_addr_prefix: address,
});
// The code is still to be found in the body of emails[0].
// No Facteur package to install: one HTTP call that waits.
const search = new URLSearchParams({
inbox: 'j3k9x2mq',
sentTo: address,
wait: '30000',
});
const response = await fetch('https://api.facteur.eu/v1/messages?' + search, {
headers: { authorization: 'Bearer ' + process.env.FACTEUR_API_KEY },
});
const { messages } = await response.json();
// The code is already extracted, in a field of its own.
const code = messages[0].otp;
Four steps, both services side by side
-
Step 01
Create an account and an inbox
Each inbox has its own domain. Any address ending with it is accepted from the first message: there is nothing else to set up.
-
Step 02
Point your sends at the inbox
In your test scenarios, the recipient address now targets the domain of your Facteur inbox instead of the namespace's.
-
Step 03
Replace searchInbox with Facteur's search
A single call waits for the message and returns it with its code in the otp field. The regular expression that looked for the code goes away.
-
Step 04
Run the suite, then cancel
Keep both accounts until the suite is green. There is no data to export and no DNS to switch.
What changes, row by row
Each cell about Mailisk links to the sentence of the sources it comes from. A row that no source lets us write is not in the table.
| Topic | Facteur | Mailisk |
|---|---|---|
| Waiting for a message | The search waits up to the delay you ask, five minutes at most, and answers as soon as the message arrives. | searchInbox waits by default, five minutes at most. source |
| Addresses | Any address of the inbox's domain lands in the inbox, with nothing to create. | Any address of the namespace's domain lands in the namespace. source |
| Beyond the volume | On paid plans, prepaid packs or pay-as-you-go overage, under a spending cap you set. | Overage tolerated with no hard cap, then a call if it keeps happening. source |
| SMS | SMS inboxes exist, but the connection to the carrier is not in service: no real SMS arrives today. | An SMS testing section is documented. source |
What Facteur does
These lines describe Facteur as its product pages and help centre give it.
One address per test
Everything before the at sign is free. Two tests writing to inscription+run-42 and inscription+run-43 each get their own message, in the same inbox.
Wait for the message in one request
The search accepts a wait of five minutes at most. If nothing arrives, it answers an empty list, not an error.
The code, already extracted
The otp field holds the most likely one-time code. When nothing announces it, Facteur leaves it empty rather than guess.
Reading costs nothing
Only a received, kept message counts against your plan. A test that receives 3 emails and reads them 40 times uses 3.
Deleted when its time is up
Each message is deleted when your plan's duration has passed, with its raw file and attachments.
Hosted at OVHcloud
The application and its database are hosted at OVHcloud, and billing is in euros. The data centre is in France.
SMS are not received yet
The connection to the carrier that delivers SMS is not in service. An assigned number receives no real SMS today.
Frequently asked questions
When to look at Mailisk?
Mailisk documents an SMS testing section with endpoints to search messages. At Facteur, the connection to the carrier is not in service. If your tests need SMS right now, check this before you choose.
How much work is the migration from Mailisk?
A few minutes per test file: the call to searchInbox becomes Facteur's search, and extracting the code becomes reading the otp field. There is nothing to export: test messages come back on the next run of your continuous integration.
What happens to the messages already received at Mailisk?
They stay at Mailisk. They are test messages: they come back on the next run of your suite, which is what keeps the migration light.
Where are Facteur's prices?
On the Pricing page, which reads Facteur's grid. No Facteur price is written here.
The other tools
The same approach for each tool: what it publishes, sourced and dated, then what Facteur does.
Facteur and Mailtrap
What Mailtrap publishes about its email sandbox, HTML previews and plans, and what Facteur does.
Facteur and MailSlurp
What MailSlurp publishes about its plans, inboxes and phone numbers, and what Facteur does.
Facteur and Mailpit
What Mailpit publishes about its open source software, SMTP server and API, and what Facteur does.
Facteur and Mailosaur
What Mailosaur publishes about its plans, its daily limit, its SMS and its API, and what Facteur does.
Migrate from Mailosaur
The mapping of the API calls, one by one, and the ones that have no equivalent at Facteur.
Try Facteur without an account
The trial receives a test email, with no sign-up. Prices are on the Pricing page.