LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2005, 02:42 AM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
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
 
Old 06-23-2005, 08:30 PM   #2
Harlin
Member
 
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 30
This is completely inappropriate for the Newbie forum. You should take this question to the software section on LinuxQuestions or to a majordomo support forum/mail-list/newsgroup.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
web forum jstephens84 Linux - Software 1 10-29-2004 11:57 PM
Web Design Programming Sub-Forum Boffy LQ Suggestions & Feedback 5 09-20-2004 03:20 AM
What's a good web dev forum pembo13 Programming 1 06-21-2004 09:01 PM
Why not adding a Linux Web Development forum ? junktechnology LQ Suggestions & Feedback 12 06-15-2004 03:14 AM
web software for server forum ehiiii Linux - Software 5 05-31-2002 08:10 AM


All times are GMT -5. The time now is 08:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration