Issue with isValidEmail function

5 posts by 3 authors in: Forums > CMS Builder
Last Post: October 22, 2014   (RSS)

By pault - October 14, 2014

I'm testing out the Newsletter Builder plugin to send out emails and have come across a problem sending email to an address with an apostrophe before the @ symbol.

This is a valid address but the function isValidEmail, in the file validation_functions.php returns an error.

Please can somebody look into this?

Thanks.

By gregThomas - October 16, 2014

Hi Pault,

I was able to replicate the issue, and I've passed this on to a senior developer to look into. I'll get back to you once we've got a fix for the issue.

Thanks

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By Dave - October 20, 2014

Hi pault, 

I've updated the code for the next release to accept ' before @ as valid email address.  

You can make this change yourself as follows:

  1. Open /lib/validation_functions.php
  2. Search for

    [\w\-]+@

  3. Replace with 

    [\w\-\']+@\

Let me know if that works for you!

Dave Edis - Senior Developer
interactivetools.com

By pault - October 22, 2014

Thanks Dave, this work well for me.

Regards, Paul.