It should work, but it is VERY dangerous.
Doing this means you give read/write access not just to the mail script, but to any php script on the server, including scripts written by other students. One typo/one bad student and your server is in big trouble.
Don't do this.
A forum, a FAQ, what else do you need?