Advanced Querying

SQLServerCentral Article

Using Xp_sendmail With the Recipients Generated From a Query

  • Article

Xp_sendmail is a great utility that SQL Server provides in order to e-mail messages directly from SQL Server, by using a valid MAPI profile. However, its syntax is rather stringent. In this article by Kunal Das, he shows you how to send messages to a list of recipients generated by a query dynamically in T-SQL.

You rated this post out of 5. Change rating

2007-10-02 (first published: )

23,903 reads

Blogs

A New Word: Amoransia

By

amoransia – n. the melodramatic thrill of unrequited love; the longing to pine for...

The Data API Builder Start and Add Extensions in VS Code

By

One of the things that I like about the Data API Builder (DAB) is...

Using OneLake for Excel Files in Microsoft Fabric

By

Hey data friends! This blog is to discuss an edge case I’ve run into...

Read the latest Blogs

Forums

DbDefence - how does work this tool?

By Oleg-461731

How it is implemented?  I have installed, tried, it is free for dbs <=30...

Technical Pain Behaviors

By Louis Davidson (@drsql)

Comments posted to this topic are about the item Technical Pain Behaviors

trying to call powershell from TSQL statement

By Siten0308

Hello, trying to call a powershell file I created, locally on the server, but...

Visit the forum

Question of the Day

Counting Bits

What does the BIT_COUNT function do in SQL Server?

See possible answers