FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » testing email deliverability...
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: testing email deliverability... [message #186039 is a reply to message #186037] Thu, 05 June 2014 02:47 Go to previous messageGo to previous message
Tony Marston is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Classic Arcade Games for Windows
Next Topic: Re: PHP and Sqlite Encryption extension
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 19:13:34 GMT 2024

Total time taken to generate the page: 0.05233 seconds