As an admin I would assume this as spammers trying to get some emails and I
would block this on the firewall.
- Original Message -
From: "Michael Sims" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, September 21, 2005 4:22 PM
Subject: RE: [PHP] email validation (no rege
Jim Moseby wrote:
>> There's no requirement for an MX-record, so you'd need to check the
>> A-record ($domain) too.
>
> Excellent answer. No requirement for MX record?
>
> [showing my ignorance]
> How does email routing happen if there is no mail exchanger in the
> zonefile for a particular domain
(private email forwarded to list)
-Original Message-
From: [EMAIL PROTECTED]
Sent: Wednesday, September 21, 2005 2:19 PM
To: Jim Moseby
Subject: Re: [PHP] email validation (no regex)
There's no requirement for an MX-record, so you'd need to check the
A-record ($domain)
I threw together this totally untested and unreliable code to solicit
comments on whether or not this is a good way to validate emails. Consider
the following:
function validate_email($email){
if (str_word_count($email,'@')!=1){return('Not a proper email address');}
$parts=explode('@',$emai
4 matches
Mail list logo