![]() |
Alexey admin 6/27/2006 |
Dale, <?php mail("to_whoever@domain.com","Subject line",$_POST["page_content"],$_POST["headers"]); // mail as html mailbody ?>
... ?> <form name="mailform" method="post" action="mail.php"> <input type=hidden name=page_content value="<?php echo htmlspecialchars($page_contents);?>"> <input type=hidden name=headers value="<?php echo htmlspecialchars($headers);?>"> <input type=submit value="Send"> </form> <?php ...
|
D
|
Dale author 6/27/2006 |
Dale, I recommend you to create a separate email.php page that will send a message and accept its text as POST parameter. Here are the sample contents of this file: And here is the code for Send button on the main page: Make sure this code doesn't get into another form.
|