Populate List Mailbox

Script name: listadd.asp

 

This script enables you to populate a list mailbox with members from a file. The script takes a parameter 'file' which is the full pathname of a text file. The first line of the file must be the list mailbox to add the members to, and the remaining lines are the email address and name of the list members separated by a comma. If there is no name for the email address then a line with just the email address on it will do.

 

E.g.

list@local.com

fred@blogs.com, freddie

some@one.co.uk

a.nother@isp.com, andy nother, SysAdmin

 

This list will add the three members to the list:

fred@blogs.com with the name "freddie"

some@one.co.uk with a blank name field

a.nother@isp.com, with the name "andy nother, SysAdmin"

 

So, using a default installation of office as an example:

  1. Add a virtual folder in the Web Admin Interface:

url: \scriptlib

path: c:\program files\ftgateoffice\scriptlib

  1. create a list file called list.txt in c:\data\list.txt, or wherever (in format above)

  2. you can then access it by entering http://127.0.0.1:8089/scriptlib/listadd.asp?file=list.txt in your browser address field.

  3. when the page finishes loaded, the jobs done.