thinking you have a list what email you're going to send for each. Then make a loop for all files should be attach, put it into other loop for each who will receive these. I mean the loop for file that attached must be next before the loop for person next. because you need send one by one. Hope can help you in this case.