Sign in to BitHut

Your projects, their status and secrets, and how to connect your AI.

Continue with Google Continue with GitHub Continue with email

If you are new, BitHut creates your account on the first sign-in.

New to BitHut? Already have an account?

Sites and domains

Mail from your project

A project on BitHut can send mail: a new lead from a form, a daily report, an alert when something goes wrong. You do not need a mail account or mail server settings. This page explains how it works, who can receive the mail and its limits.

Turning it on

Ask your AI: “Let my project e-mail me new leads”. BitHut then:

  1. Gives the project its own mail key, saved as the secret BITHUT_MAIL_KEY. The key never appears in the chat.
  2. Tells the AI how the project sends a mail: one request to BitHut with a subject and a text.
  3. Restarts the project with the key, if it is already running. Otherwise the project gets it on its next deploy.

The AI then writes the code that sends the mail at the right moment.

Who receives the mail

  • You. If the project names no address, the mail goes to the e-mail you sign in to BitHut with.
  • People of your account. The addresses they sign in to BitHut with get mail at once.
  • Any other address, like a colleague outside BitHut, a shared inbox or a client. It gets mail only after its owner agrees.

Ready templates keep these addresses in the setting MAIL_TO, separated by commas. Addresses are not secret, so you can simply tell your AI who should get the mail and it saves them. A mail goes to at most 10 addresses.

How another address agrees

The first time the project writes to a new address, the mail itself is not sent. Instead, BitHut sends that address one short letter: which project wants to write to it, and whose it is. The letter has two choices:

  • Confirm. From then on the project’s mail reaches this address.
  • Don’t send me anything. BitHut sends nothing more from this project to this address, not even a new request to confirm.

So tell the person you add that a letter from BitHut is coming, and send your test mail after they confirm.

Some details:

  • The confirmation link works for 7 days.
  • If the project writes again before the person answers, BitHut sends the request again at most once a day, and at most 3 times in all.
  • At most 20 addresses of one project can wait for confirmation at the same time.

Every mail to an address outside your account ends with a link to stop the mail. One click stops all mail from this project to that address.

Only the owner of the address can turn the mail back on. On the same stop page they press I changed my mind, send me messages again, and BitHut sends a fresh confirmation link to that address. Mail comes again after they confirm it. Neither the project nor the people of your account can do this for them.

Seeing and removing addresses

Open the project, then Settings, then Who gets e-mail from this project. You see every address with its state: confirmed, waiting for confirmation, did not confirm, or asked for no mail. People who may change the project’s keys on its main address can remove an address. After that, the project’s next mail to it asks for confirmation again. An address whose owner asked for no mail stays blocked until its owner turns the mail back on.

A form can still let you answer its sender directly. The project sets the sender’s address as the reply address, and your reply goes to them.

What a mail looks like

  • The subject starts with the project’s name in brackets, like [lead-form] New request.
  • The text is plain text, up to 100,000 characters.
  • A mail to someone outside your account ends with the link to stop the mail.

Limits

  • Up to 100 mails a day per project. When a project reaches the limit, the next mails go through as older ones are more than 24 hours old.
  • Up to 30 mails a day from one project to one address outside your account.
  • If the mail service does not accept a message, the project gets an error and can try again in a minute.

Getting a new key

Asking your AI to turn mail on again gives the project a new key; the old one stops working. Confirmed addresses stay confirmed.

For your AI: enable_email, then POST /v1/mail with an optional to.