Unable to add multiple attachments using DBMail

  • 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.

  • it does not work with wildcards.

    I would have whatever app puts the attachment files in the folder insert a row with (containing the path) into a table as well.

    The probability of survival is inversely proportional to the angle of arrival.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply