# Allow the contact url setting to be an email

**URL:** https://meta.discourse.org/t/allow-the-contact-url-setting-to-be-an-email/112879
**Category:** Feature
**Created:** [3월 29, 2019, 12:05오전 UTC](https://meta.discourse.org/t/allow-the-contact-url-setting-to-be-an-email/112879 "2019-03-29T00:05:06Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)
#### Post date: [3월 29, 2019, 12:05오전 UTC](https://meta.discourse.org/t/allow-the-contact-url-setting-to-be-an-email/112879/1 "2019-03-29T00:05:06Z")

</div>

We currently are leaving our contact url setting blank, so that the contact email setting is used, which shows our support email address unlinked on the about page. But because we’ve also set up our support email address to be received by one of the forum groups, the new version emails sent to the contact email address are rejected because they’re autogenerated!

If I were to change our contact email address and then put our support email address into the contact url setting, it links it to [https://intfiction.org/support@intfiction.org](https://intfiction.org/support@intfiction.org), obviously not what we want!

I can make it produce the correct link by making the contact url setting be `mailto:support@intfiction.org`, but it both shows the mailto to the user and it linkifies it.

Can the contact url setting be change to support email addresses directly, leaving them unlinked like it would if it were displaying the contact email instead?

---

<div class="post-metadata">

### Author: ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)
#### Post date: [4월 16, 2019, 4:43오전 UTC](https://meta.discourse.org/t/allow-the-contact-url-setting-to-be-an-email/112879/2 "2019-04-16T04:43:46Z")

</div>

PR at [UX: Allow the contact url setting to be an email by curiousdannii · Pull Request #7382 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/7382)

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [4월 16, 2019, 1:32오후 UTC](https://meta.discourse.org/t/allow-the-contact-url-setting-to-be-an-email/112879/3 "2019-04-16T13:32:04Z")

</div>

Thanks for the PR. Misusing the `contact_url` to solve your particular problem doesn’t feel right to me.

Wouldn’t it be easier to whitelist the email address used for sending new version emails? You can use the `auto_generated_whitelist` site setting for that.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [4월 16, 2019, 1:59오후 UTC](https://meta.discourse.org/t/allow-the-contact-url-setting-to-be-an-email/112879/4 "2019-04-16T13:59:04Z")

</div>

On the other hand, `mailto:alice@example.com` _is_ a URL so I think we should ensure it works properly.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [4월 16, 2019, 2:04오후 UTC](https://meta.discourse.org/t/allow-the-contact-url-setting-to-be-an-email/112879/5 "2019-04-16T14:04:04Z")

</div>

It works, but it doesn’t look pretty since it includes the `mailto:` in the link text.

```html
<a href="mailto:alice@example.com" target="_blank">mailto:alice@example.com</a>

```

@Dannii wanted an email address that can be entered as `contact_url` _and_ isn’t a link. That’s feels kinda wrong to me.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [4월 16, 2019, 2:08오후 UTC](https://meta.discourse.org/t/allow-the-contact-url-setting-to-be-an-email/112879/6 "2019-04-16T14:08:07Z")

</div>

It’s also useless if you don’t have a locally configured mail client, which is becoming increasingly common.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [4월 16, 2019, 2:23오후 UTC](https://meta.discourse.org/t/allow-the-contact-url-setting-to-be-an-email/112879/7 "2019-04-16T14:23:30Z")

</div>

> [@gerhard](#):
>
> `contact_url` _and_ isn’t a link.

Oh, that’s weird then. I agree on that part - I think we should render it as:

```plaintext
<a href="mailto:alice@example.com" target="_blank">alice@example.com</a>

```

* * *

If we wanted to drastically overengineer things I might add support for markdown so you could do

```plaintext
markdown:alice@example.com

```

or

```plaintext
markdown:[Alice](mailto:alice@example.com)

```

> [@Stephen](#):
>
> It’s also useless if you don’t have a locally configured mail client

Disagree - websites can ask to handle the `mailto:` scheme on your system:

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/7/27966962ef6185bfe3be095215b7bd181e745b82.png)

---

<div class="post-metadata">

### Author: ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)
#### Post date: [4월 16, 2019, 2:24오후 UTC](https://meta.discourse.org/t/allow-the-contact-url-setting-to-be-an-email/112879/8 "2019-04-16T14:24:45Z")

</div>

> [@gerhard](#):
>
> Wouldn’t it be easier to whitelist the email address used for sending new version emails? You can use the `auto_generated_whitelist` site setting for that.

That works perfectly, thank you!

I guess I should’ve thought to look for it. Discourse continues to surprise me with how much it just supports out of the box.

---

<div class="post-metadata">

### Author: ![PhilH.ftopia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philh.ftopia/32/119056_2.png) [@PhilH.ftopia](https://meta.discourse.org/u/PhilH.ftopia)
#### Post date: [6월 10, 2020, 3:33오후 UTC](https://meta.discourse.org/t/allow-the-contact-url-setting-to-be-an-email/112879/9 "2020-06-10T15:33:20Z")

</div>

안녕하세요!  
연락처 URL에 이메일 주소가 포함된 경우 다음과 같이 표시할 수 있는 가능성에 대해 말씀해 주셨습니다:  
`<a href="mailto:alice@example.com" target="_blank">alice@example.com</a>`

이 기능이 계획에 있나요? 현재는 mailto를 사용하고 있지만, @gerhard 님이 말씀하신 대로 그렇게 예쁘지 않습니다 🙂

감사합니다!
