Skip to main content

Sending Emails from Your Famous.ai App or Software Using Mailgun

Integrate Mailgun with your Famous.ai app to send emails effortlessly. This guide walks you through the setup for seamless email functionality.

J
Written by Jonathon Kendall
Updated this week

Integrating Mailgun with Famous.ai for Transactional Emails

To send transactional or custom emails (like order receipts or welcome messages) from your Famous.ai app, you will need to connect a third-party email provider. Mailgun is a powerful platform for this purpose.

Follow these simple steps to connect Mailgun to your project.


Step 1: Create Your Mailgun Account

Go to Mailgun.com (not Resend!). Click to log in, or sign up for a free account if you do not already have one.


Step 2: Add and Configure Your Domain

Before you can send emails, Mailgun needs to know where they are coming from.

  • In the left-hand menu of your Mailgun dashboard, click Domains.

  • Click Add Domain in the top-right corner to add your custom domain (e.g., updates.yourstore.com).

  • Follow Mailgun's on-screen DNS instructions to verify the domain with your domain registrar. (Note: You can use Mailgun's sandbox domain for temporary testing, but a custom domain is required for a live app).


Step 3: Generate Your API Key

Famous.ai needs secure permission to send emails on your behalf.

  • Click your profile icon in the top-right of the Mailgun screen and select API Security.

  • Click Add new key and give it a recognizable name (like "Famous AI Project").

  • Click Copy to clipboard.

  • Important: Store this key somewhere safe immediately, as Mailgun will only display it to you this one time!


Step 4: Connect Mailgun in Famous.ai

Head back to your Famous.ai project chat. Because Famous.ai automatically provisions a secure database backend for your project, you do not need to set up any manual infrastructure.

  • Simply prompt the AI: "I want to send order confirmation emails using my Mailgun account."

  • The AI agent will reply and ask you to provide your Mailgun API Key and the Domain you verified in Step 2.

  • Paste them securely into the chat.


Step 5: Test Your Integration

Once the AI confirms the connection is wired up, preview your app. Perform the trigger action (like submitting a contact form or checking out a test product) and check your inbox to ensure the email was successfully delivered!

Did this answer your question?