﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Suppress automatic Hyperlinks in outlook in HTML format / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 18 Jun 2013 20:35:56 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Suppress automatic Hyperlinks in outlook in HTML format</title><link>http://www.sqlservercentral.com/Forums/Topic1402460-391-1.aspx</link><description>Well, great ideas here,</description><pubDate>Thu, 03 Jan 2013 12:33:00 GMT</pubDate><dc:creator>abigailmatthewdavid</dc:creator></item><item><title>RE: Suppress automatic Hyperlinks in outlook in HTML format</title><link>http://www.sqlservercentral.com/Forums/Topic1402460-391-1.aspx</link><description>Mozilla Thunderbird, EditPlus and even Notepad++ as well as LOTS of other applciations all do the same thing when they encounter text that looks like an url or email, so it's hard to justify fiddling with the data just because someone doesn't like the behavior of that feature.You'll probably end up just living with the issue.</description><pubDate>Thu, 03 Jan 2013 11:57:45 GMT</pubDate><dc:creator>Lowell</dc:creator></item><item><title>RE: Suppress automatic Hyperlinks in outlook in HTML format</title><link>http://www.sqlservercentral.com/Forums/Topic1402460-391-1.aspx</link><description>Thank you Sean, Lowell.Replacing the @ with an image is a great idea but I will have to answer many questions to my testing and security teams. So, I am going to present the current code.</description><pubDate>Thu, 03 Jan 2013 11:46:41 GMT</pubDate><dc:creator>RJ-476420</dc:creator></item><item><title>RE: Suppress automatic Hyperlinks in outlook in HTML format</title><link>http://www.sqlservercentral.com/Forums/Topic1402460-391-1.aspx</link><description>Yeah that's a feature of Outlook, not something that has anything to do with the code you generate; it finds strings with an @ in them, and converts them to links to make things easier.if you are ok losing the copy/pasteability, you could do what web sites do to prevent the harvesting of email addresses: replace the @ symbol with an image;ie [img]http://th.fhi-berlin.mpg.de/site/img/icon_atsign.png[/img][img]http://th.fhi-berlin.mpg.de/site/img/icon_atsign.png[/img][img]http://th.fhi-berlin.mpg.de/site/img/icon_atsign.png[/img][img]http://th.fhi-berlin.mpg.de/site/img/icon_atsign.png[/img] [code]SELECT REPLACE(userName,'@','&amp;lt;img src="http://th.fhi-berlin.mpg.de/site/img/icon_atsign.png" /&amp;gt;')[/code]lowell@SSC.com becomes lowell[img]http://th.fhi-berlin.mpg.de/site/img/icon_atsign.png[/img]SSC.com;it's subtle, looks the same, but is no longer a link</description><pubDate>Thu, 03 Jan 2013 10:56:50 GMT</pubDate><dc:creator>Lowell</dc:creator></item><item><title>RE: Suppress automatic Hyperlinks in outlook in HTML format</title><link>http://www.sqlservercentral.com/Forums/Topic1402460-391-1.aspx</link><description>This isn't something you can control from your code. That is how Outlook displays the text. There is a user setting in Outlook disable that feature but it is somewhat difficult to get it to work correctly and you will find that turning that feature off is a huge annoyance for everything else.</description><pubDate>Thu, 03 Jan 2013 10:20:42 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>Suppress automatic Hyperlinks in outlook in HTML format</title><link>http://www.sqlservercentral.com/Forums/Topic1402460-391-1.aspx</link><description>Happy New Year!Here is my problem that I am trying to resolve. I am sending emails using msdb.dbo.sp_send_dbmail. I have user whose user name is their email id. I send email notifications to helpdesk with the user names in the email body. I put the user names in a html table and the helpdesk people look at the mail using outlook.Since the user names are email the outlook automatically converts the user name to hyperlinks. I dont want the hyperlinks. I want it to display as regular text. I also want the email format to be HTML.Please provide any solution you may aware of to resolve the problem. [code="sql"]	DECLARE  @EmailSubject AS NVARCHAR(255)   			,@EmailText AS NVARCHAR(MAX)   			,@HTMLTableData2 VARCHAR(MAX) = '&amp;lt;TABLE BORDER="1"&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;User Name&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;'	SELECT @HTMLTableData2 = @HTMLTableData2 				+ '&amp;lt;tr&amp;gt;'			    + '&amp;lt;td&amp;gt;' + 'username@username.com' + '&amp;lt;/td&amp;gt;'				+ '&amp;lt;td&amp;gt;' + 'FirstName' + ' ' + 'LastName' + '&amp;lt;/td&amp;gt;'				+ '&amp;lt;/tr&amp;gt;'					+ '&amp;lt;tr&amp;gt;'			    + '&amp;lt;td&amp;gt;' + '2username@2username.com' + '&amp;lt;/td&amp;gt;'				+ '&amp;lt;td&amp;gt;' + 'FirstName2' + ' ' + '2LastName' + '&amp;lt;/td&amp;gt;'				+ '&amp;lt;/tr&amp;gt;'						SELECT @HTMLTableData2 = @HTMLTableData2 + '&amp;lt;/TABLE&amp;gt;' 				EXEC msdb.dbo.sp_send_dbmail				@profile_name = N'Profile Name'					,@recipients = 'your email id'				,@blind_copy_recipients = '' 				,@subject = 'Email Subject'				,@body = @HTMLTableData2				,@body_format = 'HTML'[/code]</description><pubDate>Thu, 03 Jan 2013 09:57:21 GMT</pubDate><dc:creator>RJ-476420</dc:creator></item></channel></rss>