Skip to main content

MailGun - Sending emails from your app

Famous.ai Team avatar
Written by Famous.ai Team
Updated over a month ago

Step 1 - Go to Mailgun.com

Resend.com is a great platform for sending emails. Click to Log In or Start for Free if you haven't got one already.

Step 2 - Add API Key

Click your account in the top-right of the screen and select API Security. This is where you can create an API Key. This key is what famous.ai will use to send emails from your app through your Mailgun account.

You will need to click Add new key and give your project a name

Step 3 - Copy your API Key

Once you have generated your API Key you can copy it by clicking Copy to clipboard.
​
​Important! The Key itself is only displayed once. Please store it somewhere safe.

Step 4 - Adding a Domain

Go to left-hand menu, click Domains. In here you can choose to use the sandbox domain for now or click Add Domain in the top-right to add your own custom domain. You will need to follow the DNS instructions to configure your domain.

Step 5 - Connect to famous.ai

Now, back in famous.ai, tell the AI you want to send emails using your mailgun.com account.

Step 6 - Connect with Supabase

You will need to connect with Supabase if you haven't already. Supabase gives your famous.ai app a dynamic backend for use with data processing and file storage. For more information on what Supabase is and how to integrate, check out our helpful article: Supabase - Integrating with your Project.
​
Select a Supabase project or create a new one.

Step 7 - Enter your Mailgun API Key and Domain

The AI will ask you to enter your API Key and Domain. This is the key we copied in Step 3 above and the domain is the Domain we created in Step 4. This is how your famous.ai app can send emails through your Mailgun account.

Step 8 - Test in your app

Once your Mailgun API Key and Domain are added and your app is connected, try performing the action and testing that you can now successfully send emails.

Did this answer your question?