BarelyFitz Designs : http://www.barelyfitz.com/projects/mailserv/index.php/6

MailServ Mailing List Gateway

Usage Examples

To run MailServ, create an HTML form like the following:

The HTML for the form is:

<form method=POST action=/cgi-bin/majordomo TARGET=_blank>
<input type=submit value="Mailing list name">
<input type=hidden name=to value="majordomo@a.bogus.domain1234.com">
<input type=hidden name=list value="moe-list">
</form>
You can substitute any of the valid mailing list servers instead of majordomo, and substitute your mailing list server address and listname. The target tells it to open a new window.

Form Inputs

The following inputs are valid:
to
The mailing list request address. If you do not specify this, a field will appear prompting the user for the address. Example:
<input type=hidden name=to value="majordomo@advicom.net">

list
The mailing list name. If you do not specify this, a field will appear prompting the user for the list name. Example:
<input type=hidden name=list value="moe-list">

commands
One or more commands that the user has already selected. You can specify one or more commands to be "pre-selected". Example:
<input type=hidden name=commands value="subscribe moe-list">
<input type=hidden name=commands value="index moe-list">

max
Maximum number of commands that the user can select. You should only specify this if you also specify one or more pre-selected commands. If you set it to one, MailServ jumps immediately to the final "send commands" form instead of displaying the "select commands" form. Example:
<input type=hidden name=commands value="subscribe moe-list">
<input type=hidden name=commands value="index moe-list">
<input type=hidden name=max value="1">

errors
By default, MailServ directs email errors to the $owner address specified in the mailserv script. You can send errors to another address (such as to separate mailing list administrators). Example:
<input type=hidden name=errors value="listman@a.bogus.domain1234.com">

Examples

You can provide a front-end for selecting one of several mailing lists. Here are some examples. View the source to see how it works.
Stooge mailing lists:
Or if you have separate digest and reflected lists, you can do something like this:

To pre-select a command, use the "commands" hidden variable in your HTML form. For example:
To pre-select multiple commands, specify multiple "commands" hidden variables. For example:
To pre-select a command and immediately skip to the final "send commands" form, add the "max" hidden variable. If you do this, I recommend you also provide an unsubscribe button. For example:

Page: all 1 2 3 4 5 6 7 8 next»
The next page is Troubleshooting



MailServ

References