Chris Barr
Chris Barr

Reputation: 34145

Prevent hyperlinks in HTML emails (namely Outlook)

We've got some HTML emails that get sent out that show email addresses our service has blocked. When viewing the email in Outlook (and presumably in other clients as well) these plain-text email addresses get turned into clickable links that would compose a new message to this address when clicked.

Is there a way to prevent this from happening? Perhaps a meta tag with a flag that would prevent Outlook from converting these into clickable links?

Upvotes: 10

Views: 16617

Answers (3)

P Adlfinger
P Adlfinger

Reputation: 51

Add a dash or brackets to the link to prevent it turning into a hyperlink.

-https://www.example.com

[https://www.example.com]

Upvotes: -1

Ryan
Ryan

Reputation: 24093

I think a better answer is to formulate anything that you think a mail client might try to generate a link for in a way that breaks up the string a bit like this: https://stackoverflow.com/a/7625887/470749

Upvotes: 3

timroman
timroman

Reputation: 1394

Most email clients strip out META tags, Javascript, and other types of code not necessary for email. Outlook is going to do what it wants with your email, so what you may want to do is wrap the addresses with your own anchor tag and use a blank HREF. Then, style the link to look like the rest of your text.

Upvotes: 10

Related Questions