FormMail

Why Trust Techopedia

What Does FormMail Mean?

FormMail is a Common Gateway Interface (CGI) script primarily written in the Perl programming language. It is an open-source Web server CGI script that can be used to capture and process form data and then mail the processed data to one or more set recipients. FormMail is available in many variants. The original FormMail script was written in Perl and created by Matt Wright. FormMail is generic and has many options for formatting and other operations. It is often used as a system-wide solution for giving users access to form data without any risk of free CGI access.

Advertisements

Techopedia Explains FormMail

FormMail is a CGI script that is used to process form data submitted via the ACTION tag of the HTML form element. The script retrieves the form data and constructs an email with the form data as content, and then sends it to a list of recipients set by the user.

The script makes use of many hidden fields to control the operation of the script. These hidden fields determine the recipients of the email and also set the subject and other meta information related to the email.

The basic functionalities of FormMail include:

  • Reading all form fields
  • Creating an email with the form fields as the content
  • Allowing the user to specify the recipient details in hidden fields
  • Allowing the user to specify the subject for the email using hidden fields
  • Allowing user to add CC, BCC and other mail-related details in the email and forward the mail to more than one recipient if needed

Some FormMail variants also provide the ability to add email attachments, spam prevention and many more features like CAPTCHA validation and saving the email to a database.

Advertisements

Related Terms

Margaret Rouse
Technology expert
Margaret Rouse
Technology expert

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.