Anything
This guide shows you how to integrate Mailtrap with your Anything application to send emails.
Mailtrap is an email-sending solution for developer and product teams. Focused on fast delivery and high inboxing rates for transactional and promo emails. Provides highly customizable API and 24/7 tech support.
Prerequisites
An Anything account and a project
A Mailtrap account for sending emails
Add your Mailtrap credentials
After a minute or two, Anything will generate your project. Once it's done, you need to insert your Mailtrap credentials.
To do this, open Project Settings in the sidebar, navigate to Secrets, and click on the Add new secret button.

You need to add the following two secrets:
MAILTRAP_API_TOKEN
This is the Mailtrap API token, which you can create at any time in your account dashboard.

MAILTRAP_FROM_EMAIL
This is the email address with the verified Mailtrap sending domain you've added after creating an account.

Once you're done adding the secrets, simply tell the Anything AI that you're done with a prompt like this one:
The AI will then go over Mailtrap Email API documentation, connect it to your project, and confirm once it's done.
If you haven't already, make sure to let AI know you want the messages to be sent to the address inputted in the email field. For this, you can use a prompt such as:
"I want the message to be sent to the address inputted in the email field, meaning the to field should use the email from the form data"
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.

You can also view the email in the Email Logs tab in the Mailtrap dashboard.

If you plan on collecting email addresses for a list, you can connect your Anything project with Mailtrap Contacts and store your addresses in the Mailtrap dashboard automatically. For reference, check out the official Mailtrap Contacts API documentation.
Last updated
Was this helpful?

