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, industry-standard platform for this exact purpose.
Step 1: Create Your Mailgun Account
Go to Mailgun.com. 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 new 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 verified domain is required for a live app).
Step 3: Generate Your API Key
Famous.ai needs secure permission to send emails on your behalf. Here is how to grant it:
1- Click your profile icon in the top-right of the Mailgun screen and select API Security.
2- Click Add new key and give it a recognizable name (like "Famous.ai App").
3- Click Create Key, and then click Copy to clipboard.
π¨ Important: Store this key somewhere safe immediately! Mailgun will only display this full key to you this one time.
Step 4: Connect Mailgun in Famous.ai
Head back to your Famous.ai project. Because Famous.ai automatically provisions a secure database backend for your project, you do not need to set up any manual infrastructure.
1- Simply prompt the AI: "Please send a thank you email when the form is submitted using my Mailgun account."
2- The AI agent will reply and trigger a secure popup menu asking you to provide your Mailgun API Key and the Mailgun Domain you verified in Step 2.
3- Paste them securely into the provided fields and hit Submit.
Step 5: Test Your Integration
Once the AI confirms the connection is wired up, hit the Preview button in the top right.
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!






