in reply to Mailing List

For the physical emailing, see Mail::Bulkmail. It can do all your mailing list handling, including customising the message aka 'mail merge'.

Whether or not you mail from a text file or via a CGI depends on whether or not you need to do it from a web page.