Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 337
FiniteLooper Avatar asked Jan 11 '11 19:01

FiniteLooper


People also ask

How do I block a Hyperlink in Outlook?

In the Editor Options dialog box, click Proofing in the left bar, then go to the AutoCorrect options section and click the AutoCorrect Options button. See screenshot: 4. In the AutoCorrect dialog box, uncheck the Internet and network paths with hyperlinks box in the Replace section under AutoFormat tab.

How do I remove all hyperlinks from Outlook?

Removing All Links in a Word Document or Outlook Message Step 1: First, select the entire text – either by highlighting the area with your mouse or using the key combination CTRL + ALT. Step 2: Now use the key combination CTRL + SHIFT + F9 to remove all the hyperlinks from the document or email.


2 Answers

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.

like image 113
timroman Avatar answered Sep 28 '22 16:09

timroman


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

like image 24
Ryan Avatar answered Sep 28 '22 15:09

Ryan