> For the complete documentation index, see [llms.txt](https://docs.mailtrap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mailtrap.io/integrations/ai-powered/base44.md).

# Base44

Base44 is an AI-powered platform that lets you turn any idea into a fully-functional custom app, without the need for any coding experience. In this guide, you’ll learn how to integrate it with Mailtrap and add email-sending capabilities to your Base44 projects.

**Note**: Mailtrap offers a free, 4000 email/month Email API and SMTP plan.<br>

**Prerequisites**:

* A Base44 account and a project.
* A Mailtrap account for sending emails.

### Step 1. Add your Mailtrap credentials

To insert your Mailtrap credentials, open **App Settings** and activate **Backend Functions**.

<figure><img src="https://365478608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgkNigAKiqQtQub1GOdjY%2Fuploads%2Fa2pTMss3vFdeTsM2vJv9%2Fbase%2044%201.png?alt=media&amp;token=b5251cfb-3976-4cff-8c53-19ddc4ce81c0" alt=""><figcaption></figcaption></figure>

**Important**: This feature is only available to users subscribed to Base44 *Builder* plans and higher.

Next, click on the **Secrets** tab, which should show up after you activate **Backend Functions**.

<figure><img src="https://365478608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgkNigAKiqQtQub1GOdjY%2Fuploads%2F6o2qV1Ucesq7dGX96Zpc%2Fbase44%202.png?alt=media&amp;token=3107249b-282e-4629-9152-242a4046d886" alt=""><figcaption></figcaption></figure>

In the **Secrets** tab, as in the screenshot above, add the following two variables:

* `MAILTRAP_API_TOKEN` – The [Mailtrap API token](https://docs.mailtrap.io/api-tokens), which you can create at any time in your account.
* `MAILTRAP_FROM_EMAIL` – The email address with the verified Mailtrap sending domain you’ve added after creating an account.

Once you’re done, go back to the dashboard and tell the Base 44 AI you’ve added secrets with the Mailtrap credentials. For this, you can use a prompt such as, for example, this one:

> Please use Mailtrap email api for sending, I've added the required environment variables

### Step 2. Start sending emails

Finally, to test your configuration, trigger an action and send an email from your project. If you followed everything thus far, you should receive the email in your inbox in a few seconds. Here it is in a Gmail inbox I used as my `to` address:

<figure><img src="https://365478608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgkNigAKiqQtQub1GOdjY%2Fuploads%2FdMwlu5EVWQjpPVnObDHu%2Fbase44%203.png?alt=media&amp;token=df7df85d-1fb5-475b-b5a0-d4b7cdf6cf0e" alt=""><figcaption></figcaption></figure>

And here it is in the Mailtrap [Email Logs](https://docs.mailtrap.io/email-api-smtp/analytics/logs).

<figure><img src="https://365478608-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgkNigAKiqQtQub1GOdjY%2Fuploads%2FTSOG4TQiQwSTF4AlrIRK%2Fbase44%204.png?alt=media&amp;token=ff6157f9-311f-4ec3-a26c-0087e998d579" alt=""><figcaption></figcaption></figure>

**Before you go**: If you plan on collecting email addresses for a list, you can connect your Base44 project with [Mailtrap Contacts](https://docs.mailtrap.io/email-marketing/contacts/overview) and store your addresses in the Mailtrap dashboard automatically. For reference, check out the official [Mailtrap Contacts API documentation](https://docs.mailtrap.io/developers/email-marketing/overview).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mailtrap.io/integrations/ai-powered/base44.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
