PERL Subscribe Form

How to Create a simple Subscribe Mail Form for MailList Controller with PERL

Explore our Free Newsletter Software

Arclab® MailList Controller is the complete solution for newsletter mailings and email marketing campaigns. Test drive our software or use the free version as long as you want. There is no registration required.

Learn more

This article gives Information about how to create a simple subscribe web form with PERL.
Such a script is often called mailform or formmailer.




The following article shows how to create a subscribe webform using written by Matt Wright.
This PERL-script is installed on many webservers.

HTML soucecode for a HTML subscribe form using installed on your web server:


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<form action="http://www.mydomain.tld/cgi-bin/" method="POST">
<input type="hidden" name="recipient" value="mylist@mycompany.tld">
<input type="hidden" name="redirect" value="http://www.mydomain.tld/newsletter/thankyou.htm">
<input type="hidden" name="subject" value="Subscribe">

<br>Email: <input type="text" name="email">
<br>Name: <input type="text" name="name">

<br><input type="submit" name="send" value="Submit">


The blue lines are specific code for FormMail. If you use a different script, you need to adjust these lines. 
The green lines are universal code, used to add 2 fields (name and email) to our form.


Now save the file to your webserver and click on "Submit".