Fixing Contact Form Email Links Broken by SendGrid Tracking

If your WordPress contact form emails are showing broken or weirdly redirected links, SendGrid’s click tracking might be the reason. This issue can hurt your user experience and lead conversions. Here's how we tracked it down and fixed it.

What Was Going Wrong

A client’s contact form emails included a link to a key application page. But users reported that the link either broke or redirected incorrectly. The email was being sent using WP Mail SMTP and SendGrid.

Root Cause

🔁 Link Rewriting by SendGrid


SendGrid was rewriting the original URLs to go through their tracking domain (to measure clicks), but those rewritten links weren’t working.

🛠️ DNS or Tracking Misconfig


The click tracking subdomain hadn’t been fully set up in SendGrid’s dashboard — or the DNS wasn’t resolving properly.

Steps to Fix It

1. Check the Setup


Go to your WordPress WP Mail SMTP settings and confirm that SendGrid is the active mailer.

2. Review Click Tracking Settings


In SendGrid:

  • Go to Settings > Tracking
  • Look at the domain listed under click tracking
  • Make sure the proper CNAME DNS record is set up and active
3. Test the Links


Send yourself a test email. Inspect the source of the email to see the rewritten URLs. Try clicking them — if they fail, it’s definitely a SendGrid redirect issue.

4. Disable Click Tracking (if needed)


To restore working links instantly, you can disable SendGrid’s click tracking feature. This stops the URL rewriting and keeps your links clean.

5. Clean Up the Template


While testing, make sure your email templates are free of broken links or unnecessary tracking codes.

The Result

Once click tracking was disabled, links worked perfectly again. The autoresponder email now routes users where they’re supposed to go — helping the client avoid lost leads.

Trouble with your WordPress emails or SMTP setup?
Let Integriti Studio handle it — from mailer configs to link integrity.

Need help improving your WordPress forms or custom workflows? We build clean, reliable, and growth-driven WordPress solutions—without breaking a sweat.

Let’s Talk

Other Resources Post

Fixing WordPress News Imports & Broken Links

Migrating legacy news posts to WordPress revealed messy data and broken links. With smart import tweaks and custom field logic, we transformed it into a clean, working archive.

Fix Missing UTM Tracking in GA4 & GTM

If your UTM tags show in URLs but not in GA4 reports, you're not alone. At Integriti Studio, we solved a real case where missing campaign data in GTM had a surprisingly simple fix.

Migrate WordPress—retain SEO.

Migrating your WordPress site doesn’t have to risk SEO—done right, it preserves rankings, traffic, and user experience while boosting performance, security, and reliability through
smart tools, and best practices.

Powered by Creativity,
Fueled by Caffeine.

Get Started