How to Fix Email Links That Don't Open in Sparkforge
When Sparkforge emails open to "This site can't be reached," the Mailgun tracking subdomain (email.mg.yourdomain.com) isn't resolving. Verify the CNAME points to mailgun.org, check the tracking protocol in Mailgun, and confirm your DNS provider didn't append the root domain to the host name.
Sparkforge rewrites every link in your outbound email to route through your Mailgun tracking subdomain — something like email.mg.yourdomain.com. That's how open and click tracking works. If the CNAME for that subdomain isn't set up correctly, the rewritten link fails with "This site can't be reached / refused to connect."
The fix in three steps
- Identify your tracking subdomain.
- Verify the CNAME resolves to mailgun.org.
- If DNS is fine, fix the tracking protocol in Mailgun.
Step 1: Identify your tracking subdomain
The Mailgun subdomain you set up determines the tracking host. Sparkforge prepends email. to it:
- If your Mailgun subdomain is
mg.companyname.com, the tracking CNAME isemail.mg.companyname.com. - If it's
replies.companyname.com, the CNAME isemail.replies.companyname.com. - If it's
support.companyname.com, the CNAME isemail.support.companyname.com.
Step 2: Verify the CNAME
- Open MX Toolbox or WhatsMyDNS.
- Look up the CNAME record for your tracking host (e.g.,
email.mg.companyname.com). - It should resolve to
mailgun.org.
If the lookup says "DNS records not found"
- Log into your domain registrar's DNS panel.
- Add the CNAME with host
email.mg(oremail.replies,email.support— match your subdomain) and valuemailgun.org. - Wait for propagation (typically 5–60 minutes) and re-test.
Step 3: Fix the tracking protocol
If the CNAME already points to mailgun.org but links still fail:
- Open Mailgun and go to Sending → Domain Settings.
- Edit the Tracking Protocol (toggle between HTTP and HTTPS — enable HTTPS tracking links).
- Send a test email from Sparkforge and click the link.
Common DNS pitfalls
- Root domain appended to the host: GoDaddy and Namecheap auto-append the root domain. The host name should be just
email.mg, notemail.mg.companyname.com. If you enter the full FQDN, you end up with a record foremail.mg.companyname.com.companyname.com. - TTL too high: if you fixed the record, propagation can lag. Lower the TTL temporarily to 300 seconds for faster updates.
If the registrar verified the records are correct and links still fail, escalate to support with the test email message ID.
Frequently Asked Questions
Why do email links go through email.mg.yourdomain.com instead of the original URL?
What CNAME value should email.mg.yourdomain.com point to?
Why does the host show as email.mg.companyname.com.companyname.com?
How long does DNS propagation take?
Was this article helpful?
Thanks for the feedback.