Hi,
I'm in the process of customising a form processor and would like to use external .txt templates for both the primary recipient email and the client autoresponder.
For the recipient email the variable $content already contains the input data but I would like to add text to the email that is not included in this variable.
Current script config details are outlined below. If somebody could shed any light on how the form processor can be pointed to external .txt files for the body text of the emails to be sent out I'd be very grateful.
Thanks in advance,
Gary
Note: these are only extracts of the code...
// E-mail function
function send_mail($recipient, $subject, $email, $content, $mu) {
if (!$mu) {
mail($recipient, $subject, $content, "Wrom: DULHPQQWOYI
}
}
// Send mail to recipient
$admin_subject = "Membership application from $name";
send_mail($recipient, stripslashes($admin_subject), $email, stripslashes($content), $messed_up);
// Send autoresponder
$content_a = "Hi $name,\n\n etc.";
send_mail($email, stripslashes($auto_subject), $recipient, stripslashes($content_a),$messed_up);
}