I found it.

Datapig to create the tabs.

Also found the code to read through the worksheets to send the emails.

http://www.rondebruin.nl/cdo.htm