FeedbackForm: email address validation request

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
hansom

FeedbackForm: email address validation request

Post 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.
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

Re: FeedbackForm: email address validation request

Post 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).
Last edited by Anonymous on Wed May 03, 2006 3:29 pm, edited 1 time in total.
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
hansom

Re: FeedbackForm: email address validation request

Post 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.
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

Re: FeedbackForm: email address validation request

Post 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
Last edited by Anonymous on Thu May 04, 2006 2:34 am, edited 1 time in total.
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

Re: FeedbackForm: email address validation request

Post 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.
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
hansom

Re: FeedbackForm: email address validation request

Post by hansom »

Yeah, I noticed FormBuilder. But I imagine it will take some time before it reaches any kind of stable state?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: FeedbackForm: email address validation request

Post 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]?)\]))$
::)
Locked

Return to “Modules/Add-Ons”