cheers Coruscate that worked. I now have the e-mail addresses in a text file. what would be the best way to get a script to take each one of these addresses one by one and pass it to sendmail? i want to be able to send an e-mail to each one of the addresses in that file.