I want to create a simple sendmail.php script that sends whoever I specify an email. The problem is I don't want to specify all the values in the sendmail.php script. I want a php script that will figure out the values.
Let me clarify.
I have form.html
It has a field to enter the sender, a field to enter from-who, and a message field. Then in the sendmail.php I would put $to, $from, $message.
But instead, I want a form.html page that I can customize.
Eg.
To
From
Subject
URL
Message
etc..
How can I create a php script that will figure out how many variables I used and send the email so I don't have to use mail($to,$from,$message,etc..);
Eg. Matt's FormMail (CGI) http://www.worldwidemart.com/scripts/formmail.shtml