The email field type does not validate for proper email addresses, e.g. the following all pass:

Comments

DamienMcKenna’s picture

On line 144 of components/email.inc it says:

  if (!empty($form_element['#value']) && !valid_email_address($form_element['#value'])) {

This runs the system function "valid_email_address()" to determine of the address is valid, therefore the problem is with Drupal's internal function and not webform.

DamienMcKenna’s picture

There's a patch for core to fix this: #265548: valid_email_address() is not RFC compliant

quicksketch’s picture

Status: Active » Closed (duplicate)

We'll pass this on to core. I actually currently use "nate@localhost" regularly in my testing, which isn't actually a valid address according to spec but works anyway. Though using D7 I've gotten used to "nate@localhost.localhost", which works also and matches spec.