Page 1 of 1

FeedbackForm: email address validation request

Posted: Wed May 03, 2006 8:25 am
by hansom
FeedbackForm doesn't let me use an address like test@localhost. If I try to enter this address e.g. as Email Address(es) to Send Form Results, I get the error message test@localhost" does not appear to be a valid email address!. Neither is the address test@[127.0.0.1] accepted, although it is valid. Could this be fixed?
I understand the need for validation but please remember that there are a lot of valid addresses that are not in the common user@domain.tld format.

Re: FeedbackForm: email address validation request

Posted: Wed May 03, 2006 3:24 pm
by Elijah Lofgren
I would suggest that you just turn off email valdation while you are testing with your test@localhost email address.

Then, once you're done testing, re-enable email validation. I don't think you'd ever want someone to use a test@localhost email address on your website because that will only work on that server. AFIAK no "regular" person has an email address without a top level domain at the end (.com, .org, .net etc).

Re: FeedbackForm: email address validation request

Posted: Wed May 03, 2006 4:00 pm
by hansom
Elijah Lofgren wrote: I would suggest that you just turn off email valdation while you are testing with your test@localhost email address.
Hi, could you please tell me how to do this? I haven't played much with FeedbackForm and have probably missed something obvious. As of now I use a field of the *Email Results to set Address(es) type to supply the address that the form data should be sent to. And field validation is automatic with this field type.

Re: FeedbackForm: email address validation request

Posted: Thu May 04, 2006 2:31 am
by Elijah Lofgren
I'm sorry , I just realized that your talking about the email that the results are sent to and not a field in the form with a "Field Validation:" of "Email Address".

You could edit the module code to disable checking and then uncomment that line once you're done testing. I look for where to disable this but I couldn't find out how.

You could try to contact to guy who created this module
Here: http://dev.cmsmadesimple.org/users/sjg/
or on IRC, his nick is "_SjG_"

Here's his forum profile:
http://forum.cmsmadesimple.org/index.ph ... file;u=154

Re: FeedbackForm: email address validation request

Posted: Thu May 04, 2006 2:38 am
by Elijah Lofgren
It looks like feedbackform will be replaced with something better:
http://forum.cmsmadesimple.org/index.ph ... l#msg23864

Form Builder: http://dev.cmsmadesimple.org/projects/formbuilder
This is the next generation of Feedback Forms, which will include an API for modules to use, as well as a general structured data system.

Re: FeedbackForm: email address validation request

Posted: Thu May 04, 2006 4:20 pm
by hansom
Yeah, I noticed FormBuilder. But I imagine it will take some time before it reaches any kind of stable state?

Re: FeedbackForm: email address validation request

Posted: Thu May 04, 2006 4:49 pm
by tsw
Creating Regular expression which checks email addresses according to the RFC is hard

here is one test regexp I made some time ago (might still contain errors)

Code: Select all

^(([0-9a-zA-Z.=?{}~+-_*&\u0027]{1,64})|(\".{1,62}\"))@((([a-zA-Z0-9-]+\.)*[A-Za-z][a-zA-Z0-9-]{1,254}\.[a-zA-Z]{2,4})|(\[(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\]))$
::)