Article ID: 3445, created on Nov 30, 2007, last review on May 10, 2014
FormMail is a generic WWW form to e-mail gateway, which will parse the results of any form and send them to the specified user. FormMail was included in to preinstalled cgi scripts before H-Sphere version 2.5.
It was removed from H-Sphere version 2.5 and up.
Most popular issues are:
1. Permissions on formail.pl script are wrong
Check whether formail.pl script as well as cgi-bin/ directory have permissions 755
2. RLimitMEM are enabled
Enabled RLimitMEM may affect the performance of certain CGI scripts. Users may get the "premature end of script headers" message.
3. sendmail does not work properly.
- check if sendmail works correctly:
# echo -e "To:firstname.lastname@example.org \nSubject: Test mail FormMail2\n\n Test mail from via senmail\n" | sendmail -t -i email@example.com