Page 1 of 1

function tep_validate_email()

Posted: Sat Oct 11, 2025 8:08 pm
by Omar_one
Hello,
is there any replacement function for tep_validate_email()
I am trying to update old addon have this function

Code: Select all

$validEmail = tep_validate_email($order->customer['email_address']);
        if (!$validEmail) {
            $order->customer['email_address'] = '';
Omar

Re: function tep_validate_email()

Posted: Sat Oct 11, 2025 8:19 pm
by bonbec
Hello Omar,

filter_var($email_address, FILTER_VALIDATE_EMAIL)

found in the Phoenix_change_log from (line 177)

Re: function tep_validate_email()

Posted: Sat Oct 11, 2025 8:22 pm
by Omar_one
bonbec wrote: Sat Oct 11, 2025 8:19 pm Hello Omar,

filter_var($email_address, FILTER_VALIDATE_EMAIL)

found in the Phoenix_change_log from (line 177)
thank you @bonbec
I just come back to delete this post as I found it ,, but you are fast as lightning :D