Can't create mailto links in posts


(Stefan Wrobel) #1

Trying to link to an email address or mailto:address both gives me the same result, discourse insists on putthing http:// in front of it. Repro: http://try.discourse.org/t/email-link-test/140


(Jeff Atwood) #2

In general this is by design.

Technically Markdown does allow clickable email links to be created, but it is disabled virtually everywhere since email links are pretty much loathed anywhere users can enter text…


(Stefan Wrobel) #3

Yes, but this is forum software, and in general people want to be able to compose their posts like they want to. Just my $0.02


(Sam Saffron) #4

we are totally fine with a site setting here, default off … already have the enter behavior as a site setting.


(Stefan Wrobel) #5

What’s this referring to? I’ll add this to my list of things to try to submit a PR for…


(Jeff Atwood) #6

The tricky bit is that the preview code needs to be updated as does the Markdown parser, since this is all hard-coded off and has been for, well, forever.

Email links will not be a popular feature, I understand the “need”, sort of, I guess, but most people’s heads start spinning around and their eyes roll back in their head when you mention anything about email links in posts… I’m just saying… :scream:


(Allen - Watchman Monitoring) #8

Was the consensus here that adding a mailto:support@mycompany.com?Subject=Need%20direct%20help url in a link field is going to continue to link to http://mailto:support... link?

FWIW, simply removing the extra http:// allows the mailto url to function


(Allen - Watchman Monitoring) #9

Why? and why is this the case:

I have a need to empower our users to contact various email addresses, and because my username matches our email domain, I am unable to do so.


(eriko) #10

Most of my users do not have mail clients installed and do not have the plugings in their browsers to send them to the webmail that they use. Instead they “some weird error” that they click to make go away.

My 2 cents.


(Allen - Watchman Monitoring) #11

TIL, when handling some inbound emails, that I can create a mailto url as such:

Other Questions?
Need support for an on-premise install? Seeking a sitewide license? Other questions not answered here? Email us at team@discourse.org

That’s <team@discourse.org> using brackets around the email address.

Very simple, very nice.


Cannot open a mailto link inside a post