Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Email with multiple recipients

Author  Topic 

umaram
Starting Member

1 Post

Posted - 2008-07-09 : 02:52:52
Hi,

I have to send multiple mails from SQL Server 2005 using Database mail. All the mail IDs need to be retrieved from the table and concatenated to form the To address.

Can you guide me in this process?

Thanks
Uma

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-07-09 : 03:46:12
http://www.sqlservercentral.com/Forums/Topic336062-145-1.aspx#bm352518
Go to Top of Page

VGuyz
Posting Yak Master

121 Posts

Posted - 2008-07-09 : 10:51:36
hi friend...,

chk this..


DECLARE @L_emailid VARCHAR(1000)
SELECT @L_emailid = COALESCE(@L_emailid ,' ') + emailid_column + '; '
FROM table_name
select @L_emailid


cool :)
Go to Top of Page
   

- Advertisement -