Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

email validation rule

Welcome, Guest
Username Password: Remember me

email validation rule
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: email validation rule

email validation rule 1 year, 11 months ago #10040

  • komita
  • OFFLINE
  • Senior Boarder
  • Posts: 41
what does the email validation rule check for? just the @ symbol?

we are able to enter email addresses that have more or less than a 3 letter extension after the dot. this, of course, makes it invalid and unable to send the admin emails.

is there a fix to this or not do-able? Thanks, lauri

Re:email validation rule 7 months, 4 weeks ago #13928

  • Onnikoo
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hello Lauri!

RSForm! Pro is using JMailHelper::isEmailAddress() function to validate the email address. The actual problem lies there. This solution worked just fine with me:

- Open libraries/joomla/mail/helper.php file
- Find function isEmailAddress()
- After the $domain_array has been defined apply the lines you can see here below...

 
// Check the domain DO NOT TOUCH THIS
$domain_array = explode(".", rtrim( $domain, '.' ));
$regex = '/^[A-Za-z0-9-]{0,63}$/';
 
// APPLY THE CODE BELOW
// check that domain consists of at least two parts separated by a dot
if ( sizeof($domain_array)<2 )
{ return false; }
 
// Check that the last part in the array is longer than 1 but shorter than 4
if ( strlen( end($domain_array) )<2 || strlen( end($domain_array) )>4 )
{ return false; }
...
 
 


- Onnikoo
Last Edit: 7 months, 4 weeks ago by Onnikoo.

Re:email validation rule 6 hours, 1 minute ago #0

Hello,
This is an automatically generated message.
We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you wish to receive our support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here: http://www.rsjoomla.com/support-policy.html.

Thank You!
PLEASE NOTE: This topic is NOT locked and you can add replies to it. Other users are free to reply as well. This message has been generated by a bot and has no effect on the topic whatsoever.
Last Edit: 7 months, 4 weeks ago by Onnikoo.
  • Page:
  • 1
Moderators: alex, alexp, octavian, bogdanc, andreic
Time to create page: 1.12 seconds
Feedback