Thank this author by sharing:
Help polish the script
This script will email info about the longest running SPID in an HTML formatted table
Sending email using Send Email Task
This article explains how to send an email through Powershell.
Very useful if you have a requirem...
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands
of articles and SQL scripts, a library of free eBooks, a weekly database news roundup,
a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals
that makes it such a success.