Hi Nick,
Thank you for your quick reply, but when I replaced the code you told me to replace (with the new one) I receive this error message:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Could it have something to do with the fact that you have < before thankyou.text but no > later on?
I tried different combination... for instance deleting < but I could not get it to work.
Also would it be possible for the form to send a different letter for each form (I have 3 forms using the same script).
Since I did not get it to work, I did not see what it does... does it include the information submitted, or just the .txt file?
Thanks Again,
Ben
----- Original Message -----
From: "Nick Cleaton" <nms-cgi-support@...>
To: "Benoit" <benoit4@...>
Cc: <nms-cgi-support@...>
Sent: Wednesday, July 02, 2003 1:23 AM
Subject: Re: [Nms-cgi-support] confirmation_text
> On Mon, Jun 30, 2003 at 02:42:17PM -0700, Benoit wrote:
> > Hi There,
> >
> > How can I get the form to send a file "thankyou.txt", instead of the text written in the script?
>
> Replace the lines:
>
>
> $confirmation_text = <<'END_OF_CONFIRMATION';
> From: you@...
> Subject: form submission
>
> Thank you for your form submission.
>
> END_OF_CONFIRMATION
>
>
> in the configuration section with:
open CONF, "<thankyou.txt" or die "open: $!";
$confirmation_text = do { local $/ ; <CONF> };
close CONF;
>
>
> --
> Nick
>
|