Using Sub.pl to Create a Web Subscribe Form
To use the sub.pl script, you must make sure that the variable $cgibinpath in your confirm.pl points to the correct location of your webserver's scripts directory. The default is "/cgi-bin/".
This script generates a web page that will allow the user to subscribed to any number of lists as defined in the script. Or, you can specify a list name as an argument to the script and this will be used for the subscription. To specify the list as an argument, use the URL:
http://www.yourserver.dom/cgi-bin/sub.pl?list=newsletter
To specify multiple lists, you will have to modify the script itself or, you can use the web page generated as the source for your own web page. This script works just as well as a static HTML document. Instructions for setting multiple lists to subscribe to are in the sub.pl script itself.
In general, it is best to customize the script or customize the web page generated. You can also integrate it into an existing web site. The sub.pl script can easily be modified to allow the addition of multiple lists to join and to add additional fields to the member record.
In ListManager, a single confirmation will confirm an e-mail address for all lists that that e-mail address is a member of and is awaiting confirmation. This way, someone subscribing for many lists doesn't have to confirm every single one individually. Because of this, it is not really required to send multiple confirm documents for multiple lists; one confirmation works for them all, all at once. To do so, set the variable $OneConfirm in the script to "yes". You can also set the variable $OneConfirmDoc to be the title of a document to send as the single confirm document. This capability is only available in this script and is not available through e-mail based subscriptions.
More detailed information about customizing this script is available in the script.
![]() |