script to send email to specific mail box in FP form

T

Tom

looking for VBscript, perl, ASP - anything that will send
the message a user types in email form to a mailbox.

Thanks

-Tom
 
E

Eric Lo

In PHP,

<form method="POST" action="sendmail.php">


create a sendmail.php file with the following.

<?php_track_vars?>
<?php
$msg = "Sender's Name:\t$Name\n";
$msg .= "Sender's Email:\t$Email\n\n";
$msg .= "Description:\n\n$Description\n\n";

$mailheader = "Email Form: ";
$mailheader = "Reply-To: $Name\n\n";

mail ( "[email protected]", "Comments from Web
Form", $$msg, $mailheader, "From:
[email protected]" );
echo "<p>";
echo "<center>";
echo "<H1>Thank You $Name</H1>";
echo "</center>";

?>
 
Top