majordomo php web forum
hi there,
i've just installed majordomo and i've made a web form so people can subscribe themselves via this. but the problem is that when the e-mail is sent via this form majordomo dosn't send the subscription verification e-mail to the e-mail address that it was subscribed to, it sends it to the website i think. here is my two php pages.
mail.php
<?
$name=$_POST['name'];
$email=$_POST['email'];
$comments=$_POST['comments'];
$to="majordomo@cathedral.qld.edu.au";
$message="$email";
if(mail($to,$message,"$name $comments $email\n")) {
echo "$email has been ";
echo"$name";
echo "d to the Cathedral Schools '$comments' mailing list";
} else {
echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
}
?>
~
~
subscribe.htm
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>
<body>
<form action="mail.php" method="post">
E-mail: <input type="text" name = "email" size="20"><br><br>
List<br>
<select size="1" name="comments">
<option value="smart-board">smart-board</option>
<option value="senior-staff">senior-staff</option>
<option value="senior-support-staff">senior-support-staff</option>
<option value="support-staff">support-staff</option>
<option value="admin-staff">admin-staff</option>
<option value="boarding">boarding</option>
<option value="nurse-staff">nurse-staff</option>
<option value="boarding-tutors">boarding-tutors</option>
<option value="music-tutor">music-tutor</option>
</select>
<p>Subscribe/Unsubscribe<br>
<select size="1" name="name">
<option value="subscribe">subscribe</option>
<option value="unsubscribe">unsubscribe</option>
</select><br><br>
<input type="submit" value="Submit">
</p>
</form>
</body>
</html>
can someone either help me out by telling me how to change the php code so it seams that it actually comes from e-mail address entered on the website. or tell me how to change the configuration of majordomo
|