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,854 reads

Blogs

MVP No more, But It’s OK

By

Embracing Limitations: Finding Strength and Purpose in Hard Times For four years, I was...

A New Word: Fitching

By

fitching – v. intr. compulsively turning away from works of art you find frustratingly,...

Copilot in Microsoft Fabric

By

Microsoft Copilot is an app that uses AI to help you find information, create content,...

Read the latest Blogs

Forums

Urgent help for migration with error Login failed for the user

By ramana3327

Hi, We are migrating from SQL 2000 to SQL 2017. As a first step,...

Updated Table Not Displaying Data

By yrstruly

I have a table that contains data only to Financial Year/FY 2024: CREATE TABLE...

Pase keywords in text string

By Bruin

I've been trying to find an example to parse a record that looks for...

Visit the forum

Question of the Day

A Valid Type?

What happens when I run this code in SQL Server 2019?

DECLARE @variable CURSOR;

See possible answers