Yahoo Group mailing list sign-up script

phool4fool

203.***.***.***
1,379 days ago

Yahoo Group mailing list sign-up

This sends an email to yahoogroups telling them that the certain user that sends their email address wants to join.

Then Yahoo does the rest. You don't have to have a Yahoo account to sign-up for a mailing list, but you do to make one. To make one, go to http://groups.yahoo.com

You need a yahoo group for this script to work.

Put this in index.php:

HTML code:

<h1>Subscribe</h1>
<form action="maillist.php" method="POST">
<p>Email: <input type="text" name="email" /></p>
<p><input type="submit" value="Subscribe" /></p>
</form>



And then put this in maillist.php:

PHP code:

<?php

if (mail("yourgroupaddress-subscribe@yahoogroups.com", "", "", "From: " . $_POST['email']))
{
echo"Check your email for a confirmation email.";
}
else
{
echo"Mail() failed. Please try again.";
}
?>



Remember to change yourgroupaddress to your own group name.