is there a way to have jack's formmail.php allow users to define the subject of the...

Zerbitated

New member
...email the formmail submits? parts of the code:

/////////////////////////////////////////////////////////////
// allows you to add a hidden pre-subject while still giving
// submitter ability to enter a subject. This is handy if
// you have multiple contact forms
/////////////////////////////////////////////////////////////

$subject = "hello";

if ($presub and $postsubject)
{
$subject = $presub. "--" .$postsubject;
}
else
{
$subject = $postsubject;
}



// send it off
mail_it(stripslashes($content), ($subject)?stripslashes($subject):"balls", $email, $recipient);
if (file_exists($ar_file)) {
$fd = fopen($ar_file, "rb");
$ar_message = fread($fd, filesize($ar_file));
fclose($fd);
mail_it($ar_message, ($ar_subject)?stripslashes($ar_subject):"RE: Form Submission", ($ar_from)?$ar_from:$recipient, $email);
 
Back
Top