Back to main menu


Weekly product update: Increased character limit for link rewriting and account management improvements

Mailgun increased the character limit for link rewriting and added a new account management feature to make it easier to downgrade to a free plan. Read more...



This was originally published on June 7, 2013

This week, we’ve worked on a few features that customers had been requesting. Specifically, we increased the character limit for link rewriting and added a new account management feature to make it easier to downgrade to a free plan.

Link rewriting now supports urls up to 1000 characters

One of our awesome customers recently came to us with a problem. We want Mailgun to rewrite our links so we can use open & click tracking, but the limit of 255 characters is way too short, they said.

The issue is that they were using a lot of tracking parameters in their URLs and so were sometimes going over the 255 character limit. We love data so understood where the customer was coming from. It was also something that we could easily implement so we added support for URLs that are up to 1000 characters. You can still send urls that are longer than 1000 characters, Mailgun just won’t rewrite them.

If you’re curious, this is what 1000 characters look like. You’ll probably have to scroll….


A little more on link tracking

In case you don’t know, here’s how link tracking works. First, you need to set up a CNAME DNS record in your Mailgun control panel. A CNAME is an alias for a domain. To understand why that is needed, its helpful to understand what happens when Mailgun tracks clicks and opens for your emails.

When we track clicks for your emails, we point all your links to our own servers first (so we can count the clicks on our server), and then redirect the user to your own site. This all happens transparently for the user so they don’t notice anything (unless they are very technical and understand how CNAMEs and redirects work). For opens it’s a little different but the idea is the same: we insert a transparent pixel into your emails so that when the email is opened (with images turned on), we serve the image and register an open.

If we didn’t rewrite links using the alias that you set up with the CNAME record, when your user hovers over one of the links in their email client, they would see a URL instead of your site’s url. The CNAME solves this issue. Users see all links pointing to your site and as an added bonus, it’s helpful for deliverability if the domain in your links matches the sender domain. PROFIT!

To turn on open & click tracking, just visit the Tracking tab of the Mailgun control panel.

Manage your Mailgun account easier with new downgrade option

Lots of Mailgun customers are developers working on awesome new apps. Sometimes great ideas don’t get the traction they deserve though and that paid Mailgun account doesn’t make financial sense anymore. We’ve always allowed our customers to downgrade to a free account by contacting support, but really, having to contact us for that is kind of lame (yes, we admit it). So now, if you want to keep your Mailgun account, but move to a free tier, you can do it automatically in the control panel. Moving to a free tier means that you will be able to maintain your domains, and email history for when you want to upgrade again. But if you were using a dedicated IP address, you will lose that, as well as your logs. And if you want to cancel your account entirely, we hate to see you go, but hey, you can do that too directly from the control panel.

That’s it for this week.

Happy emailing,

The Mailgunners

Related readings

An expanded Mailgun product suite to transform email deliverability

Today marks a special day for Sinch Mailgun. For over a decade, our focus has been to provide the best email experience for businesses all around the world. Now, we take...

Read more

Privacy, automatic engagements, and Mailgun’s bot detection

Now more than ever, users are concerned about their data privacy and what steps they can take to protect their personal information. And that’s something big players in the tech...

Read more

How does Mailgun keep your emails protected?

On the surface, email seems relatively harmless – but dig a bit deeper and you’ll discover there’s a treasure trove of personally identifiable information (PII) at risk. This risk...

Read more

Popular posts

Email inbox.

Build Laravel 10 email authentication with Mailgun and Digital Ocean

When it was first released, Laravel version 5.7 added a new capability to verify user’s emails. If you’ve ever run php artisan make:auth within a Laravel app you’ll know the...

Read more

Mailgun statistics.

Sending email using the Mailgun PHP API

It’s been a while since the Mailgun PHP SDK came around, and we’ve seen lots of changes: new functionalities, new integrations built on top, new API endpoints…yet the core of PHP...

Read more

Statistics on deliverability.

Here’s everything you need to know about DNS blocklists

The word “blocklist” can almost seem like something out of a movie – a little dramatic, silly, and a little unreal. Unfortunately, in the real world, blocklists are definitely something you...

Read more

See what you can accomplish with the world's best email delivery platform. It's easy to get started.Let's get sending
CTA icon