Posted by Varanus on 06/03/06 03:20
I'm attempting to set up a form that subscribes people to a mailing
list.
The way the mailing list works is the user has to send an e-mail to
blahblah@blah.com from their e-mail account with "SUBSCRIBE BLAH" in
the body of the e-mail.
I want to make it easier, and have a form where they just type in their
e-mail and it subscribes them to the mailing list.
It seemed simple enough for me, but I can't seem to get it right.
my PHP code:
<?
$email = $_REQUEST['email'];
$from = "$email";
$body = "SUBSCRIBE CYPHERLOX";
mail( "stserv@list.cypherlox.com", $body, $email );
?>
my form:
<form method="post" action="mailinglist.php">
e-mail: <input name="email" type="text" size="25" maxlength="100">
<INPUT type="submit" STYLE="background:#1C721C" VALUE="Submit"></FORM>
[Back to original message]
|