Hi All,
One of my customers has an email address similar to bebe_musrabston_@hotmail.com (I have changes the alphabets) but it doesn't accept the email address when she tries to register on the website. I have tried myself and it doesn't accept.
Is there some check on email addresses that doesn't allow something from this email?
Open cart version 1.3.2.
Thanks!
Vimal.
One of my customers has an email address similar to bebe_musrabston_@hotmail.com (I have changes the alphabets) but it doesn't accept the email address when she tries to register on the website. I have tried myself and it doesn't accept.
Is there some check on email addresses that doesn't allow something from this email?
Open cart version 1.3.2.
Thanks!
Vimal.
www.beeshop.se
Starta webbshop, Starta e-butik, Starta e-handel
I know that some emails that have multiple dots in the domain don't seem to work in some cases.
like
I think the email validation regex might need to be improved.
like
Code: Select all
bob@my.web.co.uk
Hi Q, is there any temporary fix? Something I could go and change?
www.beeshop.se
Starta webbshop, Starta e-butik, Starta e-handel
Try this:
1. EDIT: catalog/controller/account/create.php
2. FIND:
3. CHANGE TO:
reference (http://www.regular-expressions.info/email.html)
1. EDIT: catalog/controller/account/create.php
2. FIND:
Code: Select all
$pattern = '/^([a-z0-9])(([-a-z0-9._])*([a-z0-9]))*\@([a-z0-9])(([a-z0-9-])*([a-z0-9]))+(\.([a-z0-9])([-a-z0-9_-])?([a-z0-9])+)+$/i';
Code: Select all
$pattern = '/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/i';
Hi Q! Thanks for your help. The code you provided didnät work but the reference site was excellent.
Just so others could benefit... I changed my code by adding an additional ([-a-z0-9._]) before the *\@
Allowing my email address break down as below
bebe = ([a-z0-9])
_musrabston = (([-a-z0-9._])*([a-z0-9]))
_ = ([-a-z0-9._])
@hotmail.com = *\@([a-z0-9])(([a-z0-9-])*([a-z0-9]))+(\.([a-z0-9])([-a-z0-9_-])?([a-z0-9])+)+$/i';
Now it accepts the email address.
Just so others could benefit... I changed my code by adding an additional ([-a-z0-9._]) before the *\@
Code: Select all
$pattern = '/^([a-z0-9])(([-a-z0-9._])*([a-z0-9]))([-a-z0-9._])*\@([a-z0-9])(([a-z0-9-])*([a-z0-9]))+(\.([a-z0-9])([-a-z0-9_-])?([a-z0-9])+)+$/i';
bebe = ([a-z0-9])
_musrabston = (([-a-z0-9._])*([a-z0-9]))
_ = ([-a-z0-9._])
@hotmail.com = *\@([a-z0-9])(([a-z0-9-])*([a-z0-9]))+(\.([a-z0-9])([-a-z0-9_-])?([a-z0-9])+)+$/i';
Now it accepts the email address.

www.beeshop.se
Starta webbshop, Starta e-butik, Starta e-handel
Hi,
I'm having issue with regular expression.
What would the pattern be for this - firstname.lastname@domain.com.au
I'm having issue with regular expression.
What would the pattern be for this - firstname.lastname@domain.com.au
Who is online
Users browsing this forum: No registered users and 37 guests