Test the emails your sites send. They land in a test inbox on your computer, and you can send them on for real when you want to.
How it works
A site on your own computer has no post office. When it tries to send an email (a welcome message, an order note, a "forgot my password" link), that email normally goes nowhere, or worse, to a real person while you are only testing.
Mail fixes that with Mailpit, a small free mail tester that Hoest downloads and runs for you:
- Your site sends an email, the same way it will on a live server.
- Mailpit catches it. It takes every email, for any address, and delivers none of them.
- You read it in the test inbox, a page in your browser that looks like a mail app.
Nothing leaves your computer. The addresses your site writes to do not have to exist. Only if you set up Send for real can an email go out, through a mail account of your own.
Step by step: catch your first email
- Switch Mail on. On the Home page, flip the switch on the Mail row. The first time, Hoest downloads Mailpit (about 11 MB) from its official page and checks the file. The row then says Running and gets an Inbox button.

- Send a test email. In Settings, find Send for real and press Test. A note says "Test email caught".
- Open the inbox. Back on the Home page, press Inbox. The test inbox opens in your browser, with the test email in it.

- Read it. Click an email to open it. The tabs show its text, its HTML version if it has one, its headers, and a check of the links in it.
Step by step: an email from your own site
Now the same with a page of your own. In your websites folder (the Folder button on the Home page opens it), make a file named mail-test.php with this in it:
<?php
$sent = mail('anna@example.com', 'Hello from my site', 'This is my first test email.');
echo $sent ? 'Sent. Look in the Inbox.' : 'Not sent. Is Mail switched on?';
Open http://localhost/mail-test.php in your browser. The page says "Sent. Look in the Inbox.", and the email is in the test inbox a moment later. anna@example.com is made up: any address works, because nothing is delivered.
That is all a site needs. A contact form, a shop or a sign-up page that uses PHP's mail() works the same way, with no change.
WordPress, Laravel and other tools
WordPress sends with PHP's mail() unless a mail plugin is set up, so it works by itself.
A mail plugin, Laravel, or any tool that asks for "SMTP details" gets these:
| Host | 127.0.0.1 |
|---|---|
| Port | 1025, or the port shown in Settings under Mail |
| User name and password | None. Leave them empty |
| Encryption | None |
For Laravel, in the site's .env file:
MAIL_MAILER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025
Step by step: send one to a real mailbox
The test inbox shows what your site wrote. To see how an email looks in a real mailbox, on your phone for example, give Hoest a mail account to send through. For the usual services you only need your address and a password. This example uses Gmail.
- Make an app password. Gmail does not accept your normal password from other apps. In your Google Account, open Security, make sure 2-Step Verification is on, then open App passwords and make one named "Hoest". Google shows 16 letters: that is the password to use here.
- Add the account. In Hoest's Settings, under Send for real, press Account. Choose Gmail, type your Gmail address, paste the app password and press Save.
- Press Test. Hoest sends a small email to your own address. A note says "Test email sent". Look in your real mailbox, and in its spam folder if it is not there. If it could not be sent, the note says why.

From now on you choose how much goes out:
- One email at a time. Emails still stay in the test inbox. Open one there and press Release, type the address it should go to, and it is sent. This is the safe way, and the one to use most days.
- Deliver every email for real. A switch in Settings. Every email your sites send goes to the address it was written to, and a copy stays in the test inbox. Be careful when your test data holds real people's addresses.

Other mail services
- Yahoo Mail and iCloud Mail work like Gmail: they want an app password too. The form says where to make it.
- Another service is for a mailbox from your web host or any other mail service. It asks for three more things, which your host lists under "SMTP settings": the mail server (like
mail.example.com), the port (usually587) and the encryption (usually STARTTLS). The password is the one of that mailbox. - Outlook and Hotmail are not in the list: Microsoft no longer lets apps sign in there with a password.
Hoest keeps the password on your computer only, locked by Windows for your user. To take the account away again, press Account, then Remove. Emails then stay in the test inbox, as before.
What it can and cannot do
Mail is a tester, not a mail service. Good to know before you count on it:
- It is not a real mailbox. Nobody outside your computer can write to it, replies do not come back to it, and you cannot add it to Outlook or to the mail app on your phone. It only shows what your own sites send.
- It only catches what is sent to it. A site that uses PHP's
mail()or the details above is caught. A site set up to send through another service (its own SMTP settings, or a service such as SendGrid or Mailgun) goes around it, and may really send. - It only works while Mail is running. With Mail switched off,
mail()reports that the email was not sent, and nothing is kept for later. - The inbox is on this computer only. It does not open from your phone, even with "Let other devices on my network open my sites" switched on.
- It keeps the newest 500 emails. Older ones are removed by themselves. One email can be up to 50 MB. Delete all in the inbox empties it.
- It cannot tell you whether your live site's emails will arrive. That depends on the mail setup of your live server. Mail shows what your site sends and how it looks, not how a live server delivers it.
And for sending for real:
- It needs the internet and your own mail account. Hoest has no mail service of its own.
- Emails go out from your account's address, whatever sender your site wrote, because mail services refuse anything else.
- It is for a few test emails. Your mail service counts them like any email you send, and has daily limits. Do not use it for newsletters or for a live site.
- An email can land in spam, like any email. That says little about your live site.
Ports
Mail uses port 1025 for your sites and 8025 for the inbox. If another program has one of them, Hoest takes the next free port when you switch Mail on. Settings always shows the port your sites should use.