The traditional CGI FormMail script (formmail.pl) is available but no longer recommended. FormMail was one of the most popular CGI scripts of the early web, but it has well-known security vulnerabilities that make it a target for spammers. Modern alternatives like PHP's built-in mail() function, WordPress contact form plugins (WPForms, Contact Form 7), or hosted form services are more secure and easier to maintain.
For CGI history and modern alternatives:
If you are using WordPress, install a contact form plugin like WPForms or Contact Form 7. For static HTML sites, see our guide on why forms do not send email for PHP-based form alternatives.
This article has been consolidated into our CGI guide for easier reference.
