Thursday, December 4, 2008

Re: deep e-mail and zip code validation seem to be quirky

I experienced a similar problem with deep email validation. I sorted
my problem out by overriding the email validation and calling
checkdnsrr() instead of gethostbynamel() which is what cake uses.

The problem was due to the domain only having an MX record and no A
record, so gethostbynamel() returned false.

checkdnsrr() only works on linux, which I'm guessing is why it's not
in the cake core.

Having said all of that, it seems that's not the case with
freecitymedia.com. However one thought comes to mind is that maybe
there were network problems at the time or the email address was typed
incorrectly? (eg with a space at the end, etc)

With your zip code validation, I suggest you run through the cake
source code and analyse the regexes to see why it would fail. CakePHP
isn't immune to errors, although it may be a misunderstanding on your
behalf.

Cheers,
Adam

On Dec 4, 9:00 pm, kai <k3hOuse@gmail.com> wrote:
> On my website we have lots of listings, like a directory, and many of
> them include e-mails. Sometimes the deep e-mail validation will reject
> an e-mail that we know is legit. I've had it reject an e-mail address
> and then I went on to send mail to that e-mail address successfully.
> An example of an e-mail is heidi@freecitymedia.com.
>
> I've had similar trouble with zip code validation for US and Canada. I
> can't for the life of me figure out why it's rejecting certain zip
> codes. After a zip code is rejected we look it up on google maps and
> it exists.
>
> Let me know if there's any further information I can provide to help
> figure out what's going on.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: