# Digest mail link failed to open

**URL:** https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682
**Category:** Support
**Tags:** activity-summary
**Created:** [2017年四月26日 23:53 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682 "2017-04-26T23:53:37Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![sessionstart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sessionstart/32/67305_2.png) [@sessionstart](https://meta.discourse.org/u/sessionstart)
#### Post date: [2017年四月26日 23:53 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/1 "2017-04-26T23:53:37Z")

</div>

Hello awesome guys!

I found that the links in the digest mail sent by mailgun are all failed to open. The browser shows me that it took too long to respond.

Please help!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017年四月27日 01:46 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/2 "2017-04-27T01:46:10Z")

</div>

You’d need to include more info. My guess is that mailgun is re-writing the links, maybe? What is the hostname in the links? Is it the same as your site?

---

<div class="post-metadata">

### Author: ![sessionstart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sessionstart/32/67305_2.png) [@sessionstart](https://meta.discourse.org/u/sessionstart)
#### Post date: [2017年四月27日 02:00 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/3 "2017-04-27T02:00:48Z")

</div>

Hi Jay,

Thanks for your reply and help!

The hostname in the links are not the same as my site. Let’s say, if my site were [example.com](http://example.com), the link is [email.mail.example.com](http://email.mail.example.com).

Yes, mailgun rewrites the links for collecting click info.

Any solutions?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017年四月27日 02:02 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/4 "2017-04-27T02:02:20Z")

</div>

Tell mailgun not to rewrite the links.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017年四月27日 02:09 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/5 "2017-04-27T02:09:12Z")

</div>

Oh, and/or create the CNAME for [email.mail.example.com](http://email.mail.example.com) like mailgun told you to.

---

<div class="post-metadata">

### Author: ![sessionstart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sessionstart/32/67305_2.png) [@sessionstart](https://meta.discourse.org/u/sessionstart)
#### Post date: [2017年四月27日 02:18 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/6 "2017-04-27T02:18:46Z")

</div>

Oh, if not rewrite links, will mailgun still be able to collect clicks/open info? I need that! lol

I use mailgun for other service as well, such as newsletter etc, they also rewrite the links, but I can click without any issues.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017年四月27日 02:20 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/7 "2017-04-27T02:20:28Z")

</div>

My guess is that those have a different domain name that you did set up the CNAME for.

---

<div class="post-metadata">

### Author: ![sessionstart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sessionstart/32/67305_2.png) [@sessionstart](https://meta.discourse.org/u/sessionstart)
#### Post date: [2017年四月27日 02:22 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/8 "2017-04-27T02:22:27Z")

</div>

I’ll ask mailgun about this! Really appreciated for your help! 😍

---

<div class="post-metadata">

### Author: ![kraml](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kraml/32/68627_2.png) [@kraml](https://meta.discourse.org/u/kraml)
#### Post date: [2017年四月27日 02:38 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/9 "2017-04-27T02:38:00Z")

</div>

It’s because you turned on link click tracking in your domain settings so mailgun rewrote your links to point to that server.

---

<div class="post-metadata">

### Author: ![sessionstart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sessionstart/32/67305_2.png) [@sessionstart](https://meta.discourse.org/u/sessionstart)
#### Post date: [2017年四月27日 06:53 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/10 "2017-04-27T06:53:54Z")

</div>

Yes, you got it! So if I want the link works, do I have to turn off the link click tracking?

I need click tracking for other services written in other languages. Any ideas?

---

<div class="post-metadata">

### Author: ![kraml](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kraml/32/68627_2.png) [@kraml](https://meta.discourse.org/u/kraml)
#### Post date: [2017年四月27日 08:27 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/11 "2017-04-27T08:27:56Z")

</div>

Click tracking requires you to setup a CNAME record of “email” for your sending domain and point it to mailgun server. It is in the domain configuration page. I don’t use it so I’m not sure about setup detail but according to mailgun document it seems that’s the only step required.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2019年五月29日 18:00 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/12 "2019-05-29T18:00:50Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2019年六月28日 18:00 UTC](https://meta.discourse.org/t/digest-mail-link-failed-to-open/61682/13 "2019-06-28T18:00:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
