I want to send same mail to multiple email-ids fetched from a table separately using sp_send_dbmail . If I use below query, the mail is being sent once to all user in "To" section. But my requirement is to send mail to them separately.
DECLARE @Receipientlist varchar(8000)
SET @ReceipientList = STUFF((SELECT ';' + emailaddress FROM Your query here
FOR XML PATH('')),1,1,'')
EXEC sp_send_dbmail @profile_name= your email profile in db,
@recipients= @Receipientlist,
@subject='your subject here',
@body='body message here'
Please suggest some solution.