How can I add one or more files that are saved in a MS SQL database to an email? I already know how to attach files saved in a directory or from a fileUpload control.
My datable fields are as such:
col1: Email_ID - int
col2: file_name - varchar
col3: file_content - image
So my SQL select statement is prety simple:
Select file_name, file_content from Attachments where Email_ID = 333
I just can't figure how to attach them to my emails afterwards.
Thanks!