You can use simple python script, if you have some coding experience.There are many on internet, if you don't know python.
I assume you have:
1. File with names and email addresses
2. Another File, which you want to attach.
You then open source file, loop through the emails addresses, and search for the attachment and send email. Repeat.