Integrate Soupermail
MKDoc does not have a form-to-email handler built-in but often websites need forms that send email, this howto explains how to integrate soupermail, the same method can be used for any other web application.
Soupermail is a very flexible form handler written in Perl and it is available from the Soupermail Sourceforge site.
Create new directories
You will need to set up a cgi-bin directory where the script can be run, for example: /var/www/your-mkdoc/site/cgi-bin/ and a separate directory for the soupermail configuration files, eg /var/www/your-mkdoc/site/soupermail/, the second directory does not need to be served by Apache, it is the Soupermail $privateRoot.
Apache config
The key with the apache configuration is to have a ScriptAlias for soupermail before the MKDoc aliases, for example:
ScripAlias /.soupermail /var/www/your-mkdoc/site/cgi-bin/soupermail.pl Alias / /var/www/mkdoc-1-6/cgi/mkdoc.cgi/
The directory where soupermail is installed needs to be able to run CGI applications:
<Directory "/var/www/your-mkdoc/site/cgi-bin/">
Options ExecCGI
AddHandler cgi-script .pl
order allow,deny
allow from all
AllowOverride none
</Directory>
Install Soupermail
Soupermail does have one dependency that is generally not installed on most distributions: MIME::Lite, this can be installed from CPAN.
Put the script in the new cgi-bin directory, check the path to perl and the other variables and make it executable. Fol