Hi All
I am trying to send mail through SQL Server 2005. I have configured the database for this and it works fine.
Here is the code :
Code:
EXEC msdb.dbo.sp_send_dbmail
@recipients =@Email,
@subject ='New Alert',
@copy_recipients = @HEmail,
@importance ='High',
@body = @MailBody,
@body_format ='HTML';
In the @copy_recipients i have a parameter @HEmail which contains list of email id's with comma separated. e.g. like this - [email protected],[email protected],[email protected]
The problem is it is sending the mail with the first email only i.e [email protected] and the rest is ignored. How to solve this???
Also how to concatenate one email id like [email protected] with a paramter.
Please help....
-- Abhishek