Topics Map > Communication & Collaboration > Email & Calendaring > Listserv

How do I manage listserv subscriptions in FormMail?

This article details how to use FormMail for self-subscription to a listserv.

This example demonstrates the use of FormMail for self-subscription to a listserv.


<head><title>Just testing</title></head>

<form method="post" action="">
<h1>Example of FormMail 3.0</h1>
This example shows the use of mail for listserv subscriptions.
Note that listserv needs the email address <i>and</i> full name.
Also note that listserv will send the subscriber confirmation mail
before actually subscribing them.
My email address is: 
<input type="text" name="email" >
My full name  is: 
<input type="text" name="name" >
<input type="submit" value="Submit your comments">

Configuration file

<!DOCTYPE form SYSTEM 'FormMail-3.0.dtd'>
<form name="example3" >

 <!-- I really want your email address -->
<validate name="email" public="Your email address"  vtype="email">

 <!-- This checks for nonnull, but additionally listserv
       insists on firstname and lastname -->
<validate name="name"  public="Your full name"  vtype="nonnull">
 <!-- Mail will not be sent in this example.  Remove 'nomail'
      if you are really using this.  And, of course,
      replace 'myspeciallist' with the true list name.

<mail name="mail1">
    subscribe myspeciallist $name

 <!-- Here's the html response header 
      Note that the full html page is generated, including
      the <html>...</html> tags 

<response name="r0" >
  <h1>Thank You for Subscribing</h1>
    You will hear back from listserv shortly
    about your subscription to


Keywords:form, code, script, mail   Doc ID:91746
Owner:Radhika R.Group:University of Illinois Chicago Technology Solutions
Created:2019-05-15 07:53 CSTUpdated:2020-11-16 12:11 CST
Sites:University of Illinois Chicago Technology Solutions
Feedback:  0   0