I warned you... ;-)
OK - I've got a standard html page "PAGE1" (I called it a 'static' page) which, when a form is submitted, calls a cgi script "SCRIPT1" which creates a new page "PAGE2".
On this new page "PAGE2" (I called it a 'generated' page) there is another form, which, when submitted, calls another cgi script "SCRIPT2" which is meant to create a new page "PAGE3" and send an email.
Anyway, the email never arrives - BUT the new new page "PAGE3" does appear.
BUT the unsuccessful script "SCRIPT2" and the form which calls it are not faulty in and of themselves:
I put the same form - the one which calls SCRIPT2 - on a normal html page, and both parts of the script worked - i.e. the email and the new page "PAGE3".
Thus, there are no typos in the form or script "SCRIPT2" (e.g. wrong email address!)
The path to SCRIPT2 is defined absolutely (and is obviously correct anyway as part of SCRIPT2 works always).
Basically, I don't know where to go from there.
There's no problem with the script itself, and as it works perfectly when it is called from a normal html page (as opposed to a page which has already been created by another script), I figured that might have something to do with it.
I also figured that it might have something to do with the path to Sendmail. But I may be completely off.
Hope you guys can help!