Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Send files from multiple folders as email attachments to multiple users.

$
0
0

Hi any help would be very much appreciated.

I have approximately 300 folders named after our users, such as James Bean, Ben Smith, Helen Jones etc.  There are several files in each folder and I would like to use an SSIS job to email the files from each of the folders to the user.  All of the user folders are in a share such as \\MyServer.com\Users.

e/g all files in folder '\\MyServer.com\Users\James Bean' sent as attachments toJames.Bean@MyDomain.com and all files in folder '\\MyServer.com\Users\Ben Smith' sent as attachements toBen.Smith@MyDomanin.com and so on through all 300 folders.

I have all the user names and email addresses stored in an SQL Server table that I can connect to and run an SQL task such as Select UserName, Email From dbo.MyTable.

I know I will need to use a ForEachLoop task but I am unsure of how to configure this and how to assign values to variables and whether I will need a nested ForEachLoop container.

The version I am using is SQL Server 2008 R2 and SSIS is of the same version.

Once again any help on this is very much appreciated.

Thanks

John


Viewing all articles
Browse latest Browse all 24688

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>