Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.
You can export your original list as CSV, but make sure to change the ' - ' in the explode function to be ','
Change the values in the mysql_query() to represent those of your database table.
Also, if you want to use more information from the email information, you can use $data[2],[3],etc. Every time the explode function hits your explode character (' - ') it will dump the results into the $data[] array which will increment each time it finds a new ' - '.
So once you've made all the changes to that script, you upload the emailscript.php and the mailinglist.txt to your host, then run the location of the script in your address bar. It should work automatically, but like I said; I'm afraid I can't test it!
Good luck! =)