101sitehosting.com, we supply bannerless free web hosting, free email, free webmail, free site builder, free php scripts and free support for individuals and small business.
Home
Monday, 07 July 2008
 
 
Translations
Translate This Website
Main Menu
Home
Hosting Tech
Installatron
TLD Overview
FAQs - Support
News
Useful Links
Reciprocal Links
Our Guarantee
About Us
New Webmail system
Free Web Design Software
Testimonials
Entrepreneurs Club
DirectAdmin Tutorials
Client Login
Email Address:
Password:
Click here to register with us
Live Help
A Note to Visitors Using Browser Pop-up Controls - 
If you are using browser pop-up controls or blockers, you might experience problems opening our live help chat window. To avoid problems, we recommend that you temporarily disable pop-up controls before you try to open a live chat window.
Bookmark Us
 
 
Reseller Deals
Reseller Accounts
Reseller Domains
Dedicated Server
Certified Registrar
LoadGraph
(4.6 %)
sem
Subscribing/Unsubscribing from Majordomo Print E-mail

Subscribing/Unsubscribing from Majordomo


You can subscribe and unsubscribe users to a mailing list by editing the mailing list through your DirectAdmin control panel. See the Majordomo Mailing List Manager tutorial for more information.

Users can also subscribe and unsubscribe to a list themselves by using Majordomo's email-based command interface. This tutorial will also provide and example of how to create a php script to accomplish this task for your users.

How to subscribe and unsubscribe via email
All majordomo commands are sent to It is also important to note that all commands are sent in the body of the message.
To subscribe, a user simply sends an email to with the following in the body of the message:
subscribe list-name
where list-name is the name of your mailing list. You can also use this interface to unsubscribe:
unsubscribe list-name
Example php script to allow users to subscribe and unsubscribe from a form on your web page
Create an html or php file with the following code in it or copy it to an existing page in your site:
<form method="post" action="list_command.php">
Your email address: <input type="text" name="email_addr"> <br/>
<input type="radio" name="command" value="subscribe" checked> Subscribe <br/>
<input type="radio" name="command" value="unsubscribe"> Unsubscribe <br/>
<input type="submit" value="Submit">
</form>
Now create a php file called list_command.php with the following code in it:
<?php
$command = $_POST['command'];
$email_addr = $_POST['email_addr'];

$list_name = 'your-list';
$to_addr = '
 
 
';
$body = $command . ' ' . $list_name;
mail($to_addr, '', $body, "From: $email_addr");
echo 'Your request to ' . $command . '
to the list ' . $list_name . ' has been processed.';
?>
	
Be sure to substitute the variables list_name and to_addr with your appropriate information.

Important Note: By default, lists are configured so that subscribing requires confirmation from the user. You are strongly encouraged to keep this setting. Changing it to an open subscription policy will allow unwanted users to register anyone without confirmation (spam). Changing this policy may result in termination of your account.

< Prev   Next >
 
 
Top! Top!
Welcome to 101sitehosting.com. If you are visually impaired and would like to check the availability of a domain, make a purchase, or just have questions please call us at (800) 861-1888. You may also email us at sales@101sitehosting.com to request a website service callback.  We are currently in the process of implementing more accessibility for our visitors so feel free to check back in the near future. Thank you for your interest in our company.