Make a Perl Script that Send Results by Email
In the Quiz Property dialog window, choose the page "Saving" and click on the item
"send quiz result with email". Then press the push-button "Settings", then select
the item "Advanced mode" and press the push-button "Perl Script Settings": it
will be show the following dialog window:
In order to create automatically a Perl script that receive the results from HTML quiz
and send a email using the default mail server on your web server, you have to
configure the following parameters:
· Receiver email address: email address where the quiz results will be
sent.
· Sender email address: the sender email address that will be appear on
received email.
· Email subject.
· CGI script name: it could be leave unchanged. It will use as filename; I
suggest the use of ".pl" suffix (as suffix of a Perl file)
· Web server operating system: the family of operating system of your
web server, where the Perl script will be installed.
· (only for Windows operating system) Outgoing mail server address
(SMTP)
· (only for Unix/Linux operating system) sendmail directory: "sendmail" is
the usual name of the main mail client on a Unix/Linux system.
· (solo per sistemi Unix/Linux) Perl directory: the directory where the Perl
interpreter is installed.
· List of IP address allowed by script for email sending: this list allows
to specify a list of IP or URL enable to send emails. It is strongly
recommended that you enable only your IPs (for example, the IP where
you upload your HTML quiz) in order to prevent a fraud use from third
parties (the risk is that your server could became a spamming server).
Important note:
About a fraudulent use of your Perl script, this script is not guarantee against "spoof"
HTTP header.