Contact Form Processing Products - for all your needs

FormMail • Form Encryption • Hosted Forms

VALIDATE_EMAIL_DOMAIN Setting

This page documents the VALIDATE_EMAIL_DOMAIN configuration setting in FormMail.

Type Of Setting

VALIDATE_EMAIL_DOMAIN is an OPTIONAL setting, which means...

OPTIONAL : you can change this setting if you need to, but the default value is fine for most circumstances.

Précis

Control email domain validation.

Description

You can use VALIDATE_EMAIL_DOMAIN to control whether FormMail attempts to check the user's email address's domain.

From version 9.23, FormMail validates the "email" special field (which is either entered by the user or derived from a field entered by the user) to confirm:

  1. It looks like an email address. That is, it contains a name, an "@" and a domain name.
  2. The domain name has a valid MX recordOpens in a new window.

The problem with check for a valid MX record is that it can take some time, and in some cases is unreliable in that produces a false failure. This means that the form submission can be slow or fail with a false error.

The VALIDATE_EMAIL_DOMAIN setting allows you to control whether FormMail validates the domain name by checking for MX records.

This setting is available from version 9.23 of FormMail.

Default Value

$VALIDATE_EMAIL_DOMAIN = true;

Examples

$VALIDATE_EMAIL_DOMAIN = false;

See Also

 
Close