Hyperlink in email message

I would like to set up my email that sent from xp_sendmail to include a hyperlink, so when people receive the email, they can click the link and it open a web page. here is what I set up, but in the email, there is no hyperlink show up, the '<a href="http://ateca4epgnt001/SuspenseTracking/ViewOpenSuspenses.aspx">View Open Suspenses</a>' show up instead. Please help. THanks

SELECT @Suspense = @Suspense + 'Internal Suspense Date: ' + Internal_Suspense_Dt + CHAR(13)  
                  + 'External Suspense Date: ' + Suspense_Dt + CHAR(13)
                  + 'Title: ' + Title + CHAR(13) + 'Comments: ' + Comments + CHAR(13) + 'Assignee: ' + Assigned_To + CHAR(13)
                  + 'Response POC: ' + Response_POC + CHAR(13) + 'Responsible party: ' + Responsible_Party + CHAR(13)
                  +'<a href="http://ateca4epgnt001/SuspenseTracking/ViewOpenSuspenses.aspx">View Open Suspenses</a>'
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try the below -- although by default xp_sendmail doesn't support HTML emails..

http://support.microsoft.com/default.aspx/kb/311231 == See Q10

EXEC master.dbo.xp_smtp_sendmail
    @server = 'smtp.yourdomain.com',
    @from = 'you@yourdomain.com',
    @to = 'them@theirdomain.com',
    @subject = 'HTML Testing...',
    @type = 'text/html',
    @body = @Suspense
CochiseCountyAuthor Commented:
How  should I set up to use master.dbo.xp_smtp_sendmail ? I don't see xp_smtp_sendmail in master database
Anthony PerkinsCommented:
See here:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CochiseCountyAuthor Commented:
I follow the instruction and when I try to execute a sp to send email. I receive this error message
Cannot load the DLL xpsmtp80.dll, or one of the DLLs it references. Reason: 126(The specified module could not be found.).

I checked in my Binn folder, the file xpsmtp80.dll is there.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.