Re: testing email deliverability... [message #186044 is a reply to message #186039] |
Thu, 05 June 2014 04:53 |
Eli the Bearded
Messages: 22 Registered: April 2011
Karma:
|
Junior Member |
|
|
In comp.os.linux.misc, Tony Marston <TonyMarston(at)hotmail(dot)com> wrote:
> "The Natural Philosopher" wrote:
>> I want to make sure that anyone using them has a valid reply address set in
>> a web form BEFORE I forward the message on to the site administrators.
I'd like to verify that the lottery number is going to win before I buy the
ticket. Unfortunely I don't think either of us is going to be happy.
>> is_valid_mail("user12345(at)gmail(dot)com")
Did you think that you are the first person to want this? Think how useful
it would be for spammers to find new email addresses before sending email!
> You can use the filter_var() function at
> http://uk3.php.net/manual/en/function.filter-var.php to check that an email
> address is syntactically valid, but you cannot check that an email exists
> without sending an email and getting a response back.
I have NEVER seen a "syntactically valid" check that really works. The
comments on that page list many valid addresses that don't work. (And
many validators wrongly think I post from an invalid address, but it's
syntactically valid and a working mail alias.)
Elijah
------
and some "syntactically invalid" addresses work well in practice
|
|
|