Re: QuickForm - E-Mail validation with checkdnsrr() - subdomains
| From: | Ken Guest | Date: | Thu, 11 Feb 2010 11:42:29 +0000 |
| Subject: | Re: QuickForm - E-Mail validation with checkdnsrr() - subdomains | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30283@lists.php.net to get a copy of this message | ||
You could use the Validate package to determine whether an email
address is valid.
http://pear.php.net/manual/en/package.validate.validate.email.php
On Thu, Feb 11, 2010 at 11:15 AM, Markus Ernst <derernst@gmx.ch> wrote:
> Mark Steudel schrieb:
>>
>> Something else to try would be to test the subdomain with the
>> checkdnsrr function outside of that email function. Depending on how
>> DNS is setup, it's possible that the subdomain isn't actually an A
>> record but a CNAME and is therefore returning false. If you look at
>> the two checks, it only checks that it's a MX record or A record ...
>
> Thank you for this hint. I now tried checkdnsrr($domain, "CNAME"), which
> returned false for both main domain and sub domain, and checkdnsrr($domain)
> without the type argument, which behaves the same as checking with "MX" and
> "A" type arguments.
>
> It looks like in this special case, mails to addresses
> *@subdomain.maindomain.tld are handled internally by the server at
> maindomain.tld, without any handling at DNS level.
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
http://blogs.linux.ie/kenguest/