Skip to main content

Domain and Subdomain wordpress

Currently, I have one domain and thousands of different subdomains. Which FluentCRM service package should I use to best suit bulk email sending? I also want to know how to set up automated emails so that when a customer fills out a form on any subdomain, that subdomain will automatically send an email to the customer who submitted the form, and likewise for all other subdomains. Please assist me with this.

Bryan William

Thousands of sub-domains, hmmm. Sub-domains abuse 🀣🀣🀣... Just kidding anyways. But I'm not sure fluentcrm can perform your request

Mat β€Ž

I think its a clasic case...

I asume you are not John Smith rather then a Geek from EY - First... welcome on board. Feel free like at home.

Probably you use a multisite on a shared hosting and you want to send a few emails. Lets go... #LOL #DontWarmUpEmail #HamSpamParadise


πŸ”§ COMPLETE FLUENTCRM DEPLOYMENT MANUAL FOR 1000 SUBDOMAINS


🧭 PURPOSE:
To automate deployment of:
- Fluent Forms on each subdomain
- Webhook integration into FluentCRM
- SMTP sender identity per subdomain
- Campaign generation and dispatch
- DNS setup for SPF/DKIM/DMARC
- All for 1000 subdomains with zero manual setup


πŸ“¦ REQUIREMENTS:
- WordPress Multisite installed
- FluentCRM Pro, FluentSMTP, Fluent Forms active
- SMTP provider access (Amazon SES, SendGrid, Mailgun)
- DNS provider API access (Cloudflare, Route53)
- CSV file: `subdomains.csv` with 2 columns:
subdomain,sender_email
store001.yourdomain.com,[email protected]
...
store1000.yourdomain.com,[email protected]


πŸ“₯ STEP 1: PUSH FLUENT FORM TO EACH SUBDOMAIN

Create a basic contact form with a hidden subdomain field and webhook to main FluentCRM:

REST API Payload (per subdomain):
- Form Title: Contact Form
- Fields: Name, Email, Hidden Subdomain
- Webhook to main site: `/wp-json/fluentcrm/v1/webhooks/contact`


πŸ“¨ STEP 2: WEBHOOK LISTENER ON MAIN DOMAIN

On main WordPress site, register FluentCRM webhook that listens for form submissions:

Extract:
- `email`, `name`, `subdomain`
- Assign tag: `subdomain:\` to contact


πŸ“€ STEP 3: VERIFY SENDER EMAILS VIA SMTP PROVIDER

Use SMTP provider API (Amazon SES example):
- Verify no-reply@\ for each subdomain
- Store DKIM keys returned (if applicable)


πŸ” STEP 4: DEPLOY SPF / DKIM / DMARC RECORDS

Use DNS provider API to deploy:

- SPF (TXT):
Name: subdomain.yourdomain.com
Value: v=spf1 include:amazonses.com -all

- DKIM (TXT):
Name: default._domainkey.subdomain.yourdomain.com
Value: v=DKIM1; k=rsa; p=YourPublicKey

- DMARC (TXT):
Name: _dmarc.subdomain.yourdomain.com
Value: v=DMARC1; p=quarantine; rua=mailto:[email protected]


πŸ“£ STEP 5: CREATE FLUENTCRM CAMPAIGNS PER SUBDOMAIN

Use REST API:
- Title: Promo for \
- Tag: subdomain:\
- Sender: no-reply@\
- Email body: HTML content

Then send campaign via FluentCRM `send` endpoint.


βœ… STEP 6: BOUNCE MONITORING AND REPORTING

- Use FluentSMTP for bounce notifications
- Use DMARC analytics tools (dmarcian.com, Postmark)
- Set up auto-tag removal for invalid/bounced addresses


πŸ˜‡ LAST STEP: OPEN YOUR DOOR AND SAY HI AND BYE TO FREEDOM

If you’re planning to automate FluentCRM across 1,000 subdomains... just remember, the only thing faster than your deployment script will be your descent into becoming the unofficial tech support guru for a legion of digital clones. May your DNS records be ever accurate and your caffeine supply never-ending. You’re not just launching marketing - You’re orchestrating a symphony of chaos. Also if its a real case please forgive me my comments.

ps.

  • πŸ’½ Managing 1,000 SMTP identities: You’ll need to verify each sender and store DKIM records from your provider.
  • πŸ” Monitoring deliverability: More subdomains mean more reputations to manage. You’ll want centralized bounce and DMARC reporting.
  • πŸ”§ Error handling in scripts: Especially when APIs rate-limit or fail mid-batch. Logging and retries are essential.

Manoj Sharma

Mat β€ŽΒ There is some learning there!

Mat β€ŽΒ Do you have any video or document tutorials? I find it a bit difficult to understand because there are too many techniques.

Mat β€Ž

DΖ°Ζ‘ng Nguyα»…nΒ it will be difficult to execute such a case scenario if you dont have much experiance. Also you should validate your idea again before even implementing (PoC).

I dont have any out of the box solution for you or a learning path but you can use ChatGPT to guide you.

Before you begin you should already ask yourself some fundamental questions:

  • what server do you need to handle such a case
  • what external ESP will allow you to have a such a setup for 1000s of subdomains and how will you manage so many sending domains (From: subdomain) and keep them warmed up (to avoid spam).
  • How are you going to send email high volume (marketing and transactional emails) from subdomains and not being banned
  • How are you going to automate the setup process for this case scenario especially if you dont have much experience with it. Doing it manually will take you "some" time.

Maybe it would be more beneficial for you to understand this setup by just setting up 1x end-to-end case (1x subdomain) instead of thinking of doing it for 1000s subdomains.

Also probably it would be easier if you would collect your data from all fluent forms (from subdomains) to one FluentCRM (primary domain) and send emails only from that primary domain (one sender domain) not from each subdomain but again I am not sure what is your business case and it is above what I can help here.

Maybe someone else can offer you a ready $olution.

How to send emails from different SMTP profile based on Tags (where tag determine from which subdomain we should send out email)?

You're working with FluentCRM and want to send campaigns where the sending SMTP changes based on user tags, and those tags correspond to specific subdomains.

Scenario Overview

Imagine these tags:

Each of these senders is connected to a different SMTP configuration via FluentSMTP.

What You Need

Before building the logic:

  • FluentCRM installed
  • FluentSMTP with multiple configured connections
  • Verified sending emails (finance@..., events@..., etc.)
  • PHP dev access or a plugin for FluentCRM automation hooks (like Code Snippets)

Step-by-Step Flow

  1. Tag Contacts
    • Tag: subdomain_finance
    • Tag: subdomain_events
    • Tag: subdomain_support
  2. Configure Multiple SMTP Connections
    • Add a separate SMTP connection for each sender
    • Use sender-specific settings and emails
  3. Inject Custom SMTP Routing Based on Tags
    • Use this PHP snippet in Code Snippets or your custom plugin:
add_filter('fluentcrm_email_sending_options', function ($emailOptions, $subscriber) {
    $tags = $subscriber->tags;

    if (in_array('subdomain_finance', $tags)) {
        $emailOptions['from_email'] = '[email protected]';
        $emailOptions['from_name'] = 'Finance Team';
        $emailOptions['connection'] = 'finance_smtp';
    }

    if (in_array('subdomain_events', $tags)) {
        $emailOptions['from_email'] = '[email protected]';
        $emailOptions['from_name'] = 'Events Team';
        $emailOptions['connection'] = 'events_smtp';
    }

    if (in_array('subdomain_support', $tags)) {
        $emailOptions['from_email'] = '[email protected]';
        $emailOptions['from_name'] = 'Support Team';
        $emailOptions['connection'] = 'support_smtp';
    }

    return $emailOptions;
}, 10, 2);

Last step

Create Campaign Normally

  • Go to FluentCRM > Campaigns
  • Select your audience (all tagged contacts)
  • Create and schedule the campaign

The hook will auto-route each email to the correct sender and SMTP.