We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

problem with function isEmailValid( $ value ) | Forum

Patricia Zorrilla Leader
Patricia Zorrilla Apr 3 '15

This is located in line 48 of ow_utilities\validator.php

const EMAIL_PATTERN = '/^([\w\-\.\+\%]*[\w])@((?:[A-Za-z0-9\-]+\.)+[A-Za-z]{2,})$/';

public static function isEmailValid( $value )


    $pattern = self::EMAIL_PATTERN;
    $trimValue = trim($value);

    if ( !preg_match($pattern, $value) )


        return false;

    return true;


The problem is that the addresses that contain the string ".@" Are taken for bad, yet are correct, eg "sample.@misite.com"

To register with Oxwall software accepts, but fails to send emails.

See: Cron causes Error 500 but the whole network works perfectly

I understand that it is poorly defined EMAIL_PATTERN

Does anyone know the correct constant to accept these emails?

The Forum post is edited by Patricia Zorrilla Apr 3 '15