|
Answer by: Stuart Pierce, Knowledge Base
Support.
You can setup an online form on your website
to allow visitors to automatically subscribe to a mailing list. The
instructions below assume that your domain name is hosted with Aplus.Net
and you are using the formmail.pl script available for our
shared hosting customers.
- You will need first to
enable the Auto subscribe / unsubscribe option of your mailing
list:
- Then,
you have to create a form on one of your web pages using our formmail.pl
script. You have to explicitly specify the following values:
-
Recipient value should be: list-request@yourdomain.com
-
Subject value
should be: subscribe. Note: For unsubscription,
the subject value should be “unsubscribe”.
-
You have
also to include a required email field so that users should
enter the email address to be added to the mailing list.
Important: It is
assumed that your mailing list address is list@yourdomain.com.
Please make sure to replace “list@yourdomain.com” with your actual
mailing list address.
You
can see below an example of HTML code. It utilizes the formmail script
so that users can subscribe to a mailing list through your web page:
<FORM ACTION="/cgi-sys/formmail.pl" METHOD="POST">
<input type=hidden name="recipient" value="list-request@yourdomain.com">
<input type=hidden name="subject" value="subscribe">
Your Name: <input type=text name="name"><br>
Your Email Address: <input type=text name="email"><br>
<input type=hidden name="required" value="name,
email">
<input type=hidden name="redirect" value="http://yourdomain.com/thankyou.html">
<input type="submit" value="Submit" name="Submit">
</FORM>
Note:
A “redirect” value is also included in the script. Thus, visitors
will go to http://yourdomain.com/thankyou.html when they hit the “Submit” button. Please change this URL to match
your own “Thank you” page.
Related
links:
|