Problem with mail verification

Discuss everything related to FormBuilder. All versions. Any questions related to the FormBuilder developing or using should be posted to this forum.

Moderators: alexandrleonenko, goas

lapuella
Junior
Junior
Posts: 11
Joined: Sep 12th, '13, 18:08

Problem with mail verification

Postby lapuella » Sep 12th, '13, 18:21

Mail verification doesn't seems to work correct, my own mailadress contains a - (minus sign) in the domainname and is not validating correct.
I changed the code to:

if ( !preg_match('/^[A-Za-z0-9](([a-zA-Z0-9_\.\-]+)*)@[a-z0-9\-.]+[a-z]{2,6}$/', $this->value, $matches) ) {
$this->_HasError(new ValidatorError ( 'INVALID_EMAIL', $this->name, array('fieldName' => $this->userFriendlyName) ));
}

I don't know if that is oke, but it seems to work now.

administrator
Site Admin
Site Admin
Posts: 6015
Joined: Jan 7th, '09, 23:18
Contact:

Re: Problem with mail verification

Postby administrator » Sep 15th, '13, 07:52

Thanks, we'll check this issue.

Pristexo
Newbie
Newbie
Posts: 2
Joined: Jun 25th, '18, 07:32
Contact:

Re: Problem with mail verification

Postby Pristexo » Jun 26th, '18, 03:33

I'm ready to share this wonderful conversation.


Return to “ApPHP FormBuilder {developers/users}”