Re: testing email deliverability... [message #186039 is a reply to message #186037] |
Thu, 05 June 2014 02:47 |
Tony Marston
Messages: 57 Registered: November 2010
Karma:
|
Member |
|
|
"The Natural Philosopher" wrote in message
news:lmoeok$5v6$1(at)news(dot)albasani(dot)net...
>
> I have web contact pages which are used by anyone to send enquiries.
>
> 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.
>
>
> Mailer is exim, and that's currently but not necessarily invoked by the php
> mail() function.
>
>
> what I want is a function like
>
> is_valid_mail("user12345(at)gmail(dot)com")
>
> that will return true or false if gmail accepts the user as known (yes the
> spam is always @gmail.com) WITHOUT having to write a dns mx lookup, then
> connect to socket 25 and etc etc etc..
>
> exim -bt tells me if the domain is valid, but not the user.
>
> I am not particular how its achieved - anything can be merged into the
> existing code.
>
> anyone done this?
>
>
"The Natural Philosopher" wrote in message
news:lmoeok$5v6$1(at)news(dot)albasani(dot)net...
>
> I have web contact pages which are used by anyone to send enquiries.
>
> 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.
>
>
> Mailer is exim, and that's currently but not necessarily invoked by the php
> mail() function.
>
>
> what I want is a function like
>
> is_valid_mail("user12345(at)gmail(dot)com")
>
> that will return true or false if gmail accepts the user as known (yes the
> spam is always @gmail.com) WITHOUT having to write a dns mx lookup, then
> connect to socket 25 and etc etc etc..
>
> exim -bt tells me if the domain is valid, but not the user.
>
> I am not particular how its achieved - anything can be merged into the
> existing code.
>
> anyone done this?
>
>
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.
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|