Welcome to BotSailor Help! Just use the email OTP to sign in and track your tickets. Password login isn’t needed anymore.

Connecting Mailgun to BotSailor for Reliable Email Marketing

If you're looking for a powerful, developer-friendly way to send automated emails directly from your chatbot flows, Mailgun integration in BotSailor is the perfect solution. Whether you're sending welcome emails, lead confirmations, Mailgun ensures high deliverability and full control over your sender reputation.

This guide walks you through connecting your Mailgun account to BotSailor enabling email sending through your automation workflows.

 

What You Can Do with Mailgun in BotSailor

 

  • ✅ Send emails instantly when a user submits their email through a bot flow
  • ✅ Use your own verified sending domain
  • ✅ Maintain inbox deliverability and email branding
  • ✅ No need for external mailing platforms

📌 This integration is designed for BotSailor end users. It supports direct email sending via Mailgun’s SMTP configuration.

 

Prerequisites

Before you begin:

  • A verified Mailgun account
  • A verified sending domain in Mailgun
  • SMTP credentials (Login, Password, Host, Port)
  • A BotSailor account with at least one bot flow containing email input or a data collection button

 

Step 1: Get Your Mailgun SMTP Credentials

  • Login to your Mailgun dashboard
  • Navigate to Sending → Domains
  • Choose your verified domain
  • Copy the following values:

    • SMTP Login (usually [email protected])
    • Default Password (generated when domain was created)
    • SMTP Host (e.g., smtp.mailgun.org)
    • SMTP Port (587 or 465)

 

 

Tip: If you've lost your SMTP password, regenerate it under the “SMTP credentials” tab.

✅ If you don’t have a verified Mailgun domain then follow this article here to learn how to verify your domain in mailgun. ( mailgun verification article link)

Step 2: Add Mailgun as an Email Provider in BotSailor

 

  1. Login to your BotSailor dashboard
  2. Go to Settings → Email Integration
  3. Click “Add New”

Fill out the form:

  • Provider Type: Select SMTP
  • Sender Name: Your business or brand name
  • Sender Email: Your Mailgun [email protected]
  • SMTP Host: smtp.mailgun.org
  • SMTP Port: 587 (TLS) or 465 (SSL)
  • SMTP Username: Your Mailgun SMTP Login
  • SMTP Password: The SMTP password you copied
  • Use SSL/TLS: Enable depending on port used

 

✅ Click Save

 

Now you are ready to use mailgun

 

 

Best Practices

 

  • ✅ Verify SPF and DKIM for your Mailgun domain to boost deliverability
  • ✅ Always test with your own email before sending to real users
  • ✅ Keep messages concise and clean — too many links or spammy words may get flagged
  • ✅ Use Custom Fields to personalize subject and body content
  • ✅ Monitor email logs inside your Mailgun dashboard for bounces and errors

 

Troubleshooting Common Issues

Issue

Fix

Connection failed

Ensure SMTP Host, Port, and Login details are correct

Emails go to spam

Set up SPF, DKIM, and DMARC properly on your domain

Messages not sent

Make sure SMTP is selected correctly in Send Email action

SMTP errors

Regenerate SMTP credentials in Mailgun and retry

 

Why Use Mailgun with BotSailor?

  • Advanced tracking & analytics on every email sent
  • Trusted infrastructure with high deliverability rates
  • Ideal for transactional, triggered, or personalized emails
  • Works across all channels (WhatsApp, Webchat, Messenger, etc.)

 

 

FAQ

 

Can I use Mailgun with BotSailor without verifying my domain?
 No. You must verify your sending domain in Mailgun before you can send emails via SMTP from BotSailor. Without verification, Mailgun will block outbound emails or flag them as untrusted.

What’s the difference between Mailgun SMTP and Mailgun API in BotSailor?

  • SMTP: Configured in BotSailor’s Email Integration settings for simple setup.
  • API: Requires use of HTTP Request blocks and advanced setup (not covered in this guide).
    SMTP is sufficient for most use cases.

Where do I find my Mailgun SMTP credentials?
 Log in to your Mailgun account → Sending → Domains → Select your domain → You’ll find:

  • SMTP Login (e.g., [email protected])
  • SMTP Password
  • SMTP Host: mailgun.org
  • Ports: 587 (TLS) or 465 (SSL)

I forgot my SMTP password — what should I do?
 Inside the SMTP credentials section of your Mailgun domain, click "Reset Password" to generate a new one.

Can I use any email as the sender?
 No. The sender email must match your Mailgun-verified domain (e.g., [email protected]). Using free emails like Gmail or Yahoo is not allowed.

What port should I use: 587 or 465?

  • Use 587 if you’re using TLS
  • Use 465 if you’re using SSL
    Make sure to toggle the correct SSL/TLS setting in BotSailor based on your chosen port.

How can I test if my Mailgun SMTP is working in BotSailor?

  • Create a test bot flow with an email input and a Send Email actio
  • Choose your configured Mailgun SMTP
  • Submit the form with your own email and check the inbox

Why are my emails going to spam?
 Common reasons:

  • SPF or DKIM not set up properly
  • Using suspicious subject lines or spammy language
  • Sending from an unverified domain
  • Poor IP/domain reputation (check in Mailgun dashboard)

How do I track email status or delivery errors?
 Go to your Mailgun Dashboard → Logs to view sent emails, delivery status, bounces, and errors.

Can I personalize emails sent via Mailgun in BotSailor?
 Yes. Use dynamic fields like {{first_name}}, {{email}}, {{product}} in the email subject and body to personalize the message based on chatbot data.