Click here to Skip to main content
15,919,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm using SQL Server dbmail job for sending business reports in my company. I attach the result report as an excel sheet. Now I need the report as the mail body itself. Can anyone help me?


Thanking in advance..

Shanif
Posted
Comments
Prasad Khandekar 2-May-13 10:20am    
Please have alook at http://msdn.microsoft.com/en-us/library/ms190307.aspx. You will not be able to send xls as the body. Instead use the same query which you use to generate the xls. Look at the code for sample C. Sending an HTML e-mail message at the above link.

Regards,
ShanifHassan 3-May-13 5:48am    
Thanks Prasad.... I got it!!!!!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900