How do you use sp_send_dbmail to send all attachments in a given folder?
If I use @file_attachments = 'c:\attachment\*.*' then it just states the attachment file is invalid. The only way I can think to do it is to save the attachment locations into the SQL database and then do a query to get all the exact paths but this seems overly complex. Is there a better way?
Any help would be much appreciated.
Thanks,
Matt.