Base44 and Mailtrap Integration
Send Emails with Base44 and Mailtrap
With Mailtrap SMTP, you can move beyond Base 44’s email limit to a production-ready email-sending solution with actionable analytics.
Mailtrap is an email delivery platform for developer and product teams. Focused on fast delivery and high inboxing rates for transactional and promo emails. Provides a highly customizable API and 24/7 tech support.
Prerequisites:
- A Base44 account and a project.
- A Mailtrap account for sending emails.
Step 1. Create a landing page/contact form
Log in to your Base44 account and use a prompt like the following one to create a simple project with basic fields:
simple contact form with email, name, and message fields, and a send button
Step 2. Add your Mailtrap credentials
After a minute or two, Base44 will generate your project. Once it’s done, you need to insert your Mailtrap credentials.
To do this, open App Settings and activate Backend Functions.

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.

In the Secrets tab, as in the screenshot above, add the following two variables:
MAILTRAP_API_TOKEN– The Mailtrap API token, which you can create at any time in your account dashboard.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:
I've added the MAILTRAP_API_TOKEN and MAILTRAP_FROM_EMAIL secrets
Step 3. Start sending emails
Finally, to test your configuration, fill out the form and hit the Send button. 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:

And here it is in the Email Logs tab in the Mailtrap dashboard.

Before you go: If you plan on collecting email addresses for a list, you can connect your Base44 project with Mailtrap Contacts and store your addresses in the Mailtrap dashboard automatically. For reference, check out the official Mailtrap Contacts API documentation.