Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to send order confirmation document to customers. I know it is possible to send email attachment from the application side. Please help me whether can I do it from sql server.

What I have tried:

I tried to do it from the application side.
Posted
Updated 12-Dec-16 0:27am

Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search using part of your subject as the search term gave over a million hits: send email attachments from SQL server - Google Search[^]

The top hit is MSDN, with code... SQL Database Mail – Send Emails with Attachment – Microsoft SQL Server on Windows Azure Virtual Machines[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.
 
Share this answer
 
Check this out: sp_send_dbmail (Transact-SQL)[^]
 
Share this answer
 

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