Setting up a simple mailing list   
One of the most important ingredients for marketing a site or contend is to know your visitors. Rohit Bafna [webmaster@cyberadsstudio.com], CEO of CyberAds Studio takes a look at setting up a simple mailing list on your site. You can then notify some so the users that surf your site of any new changes to your site or you could send your users any special sales you may be having. 
 
We have to first create a form that asks for the user's email address, which is then processed by a CGI script that mails the email address to a pre-determined person whose mail software will then add the user's address into a mailing list. The process of constructing your own mailing list is easier than you think. We'll show you how. 
You will need to decide which page(s) you want to put the form. This is the HTML code we often use.

<FORM ACTION="/cgi-bin/maillist" METHOD=post>
  <INPUT TYPE=hidden NAME="list" VALUE="cyberads">
  <STRONG>Enter your e-mail address here to receive updates.</STRONG>
  <INPUT TYPE=text NAME="email" SIZE=30>
  <INPUT TYPE=submit VALUE="Keep me updated!">
</FORM>
      
The important thing to notice is the value of the input list. Because this is how the mail filters recognizes what to process. You can change the value from cyberads to any other name you wish. Also be sure to change the ACTION to the appropriate CGI script. 
 
The CGI script that we wrote was written in perl. The most important thing about the script is that it sends the mail with the subject line as: subscribe cyberads. The information will change depending on what you put as the value in the HTML code above. This subject line is what your mail software use to distinguish between this kind of subscribe message and your other email. 
 
When you or the person in charge of the mailing list receives the mail, your mail software will begin the process of handling the subscribe message. But first you have to set it up so it knows what to do. We'll use Pegasus Mail version 2.42 as an example, but Eudora Pro, BeyondMail and other mail software also have similar configuration steps. 
 
Pegasus Mail and mail-filter rules

Pegasus Mail, like other mail software, has mail-filtering rules to sort your mail. We use these filter rules to accomplish three steps: 
1. Automatically send a message to the user acknowledging their subscription 
2. Place the user on a mailing list 
3. Move the subscribe message to a storage folder once you have had a chance to look at it. 
 
We use the mail filter to setup a rule for each of these steps. First, create a mailing list (it's called distribution list in Pegasus). You can find it in the Addresses menu or by pressing F6. 
 
Click New List, enter the name of the list, and click OK. 
 
Next, you have to create a mail folder where these subscribe messages can be stored. Go to your mail folders window (Ctrl-L or File | Mail Folders) and create a new mail folder. 
 
Third, create a file with the text that you want to automatically send to the user. Things that you can write include a little introduction about the list, how many times a month the newsletter is sent, and information about how to unsubscribe (we'll get to that later). 
 
This is also a good time to create a file for when the user decides unsubscribe from your newsletter. 
 
Creating the mail-filter rules
 
Once you have finished the above steps, then you can create the mail filter rules. Go to the File menu and select Mail filtering rules | edit new mail filtering rules | rules applied when folder is opened. Alternatively, you can click on the button that has a red funnel and a blue arrow pointing down. 
 
To create the first rule of automatic replying to the user, click on Add Rule, and click on In these headers and Subject:. This tells the Pegasus to look for the trigger text only in the Subject header of the mail message. What's the trigger text? It's the text that identifies the email as a subscribe message, and in our case, it's subscribe cyberads. So we enter subscribe cyberads  into the Trigger text field. 
 
Now that we have established the rule for picking which message to act upon, we need an action. In our case, they are the 3 steps that we want accomplished. So first we'll use the action to send an automatic reply to the user. Choose Send text file in the Action to take field, and a dialog box will pop up asking you for the location of the file. Choose the file that you created earlier, and click OK. That's it, the first rule is completely done! 
 
The other two rules are similar, except for the action to take. For adding the user to a mailing list choose the Add user to list option and for moving the message into a mail folder use the Move option. 
 
Unsubscribe is important too!
 
You also have to have a mechanism for users who may want to unsubscribe from your newsletter. You should include in the automatic reply a line or two about unsubscribing. Our procedure is to reply with a unsubscribe Cyberads in the message. Unsubscribing involves the same steps as subscribing, except for the reverse actions that need to be acted upon. 
 
Once you're finished with the whole setup, it would be prudent to check it first by subscribing your own email address as a test. Go through the whole subscribe and unsubscribe procedure and make sure that each step has been executed correctly. 
 
For more information check out these sites: 
Pegasus Mail - http://www.pegasus.usa.com/  
Eudora Pro - http://www.eudora.com/
 

 
Sponsors

CyberAds Studio

The Difference is People
Experienced consulting team assists to oursource your IT projects and Technical Support Help Desk. CyberAds Studio runs an Offshore Software Development Center (ODC) in India and China.

Our strengths are in Content Management, Portal Development, Custom Software and application development, Wireless Application Development, Smart Card, Embedded System development, System Integration, Global Project Management and Offshore Software Development Center.

Innovative and state-of-the-art website design offering technically-savvy perspectives on corporate communications and web marketing. See examples of our website design.

Submit your Resume
Apply online for an exciting career with CyberAds Studio in the US, Europe and Brazil and at our offshore software development centers in India and China. View Jobs and Submit Resume

Spear Art Museum

Exclusive showcase of contemporary Indian Fine Art with famous paintings of M.F. Husain, Satish Gujral, Laxman Shreshtha, Deepak Shinde, S.H. Raza, Sanjay Bhattacharyya, Prabhakar Barwe, N.S. Bendre, and Anjolie Ela Menon.

Visit the SPEAR Art Museum and Gallery.