in reply to Re^4: Sending Mail
in thread Sending Mail

If the contents of test.pl is shown and not the output, that's a configuration problem of the webserver.

You should check if the script has executing permissions, and that CGI scripts are allowed by your server config.

If the script runs, use CGI - the documentation is quite good.