Re: Check for existence of mail address
| From: | webdev at blaettner dot com | Date: | Mon, 25 Oct 2010 23:18:57 +0000 |
| Subject: | Re: Check for existence of mail address | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-309065@lists.php.net to get a copy of this message | ||
Hi Daniel, hi Jonathan, hi folks,
many THX for Your quick replies!
On Mon, 25 Oct 2010 18:46:02 -0400, "Daniel P. Brown"
<daniel.brown@parasane.net> wrote:
> On Mon, Oct 25, 2010 at 18:38, <webdev@blaettner.com> wrote:
> >
> > Is there any other function which checks whether this
> > address really exists?
>
> Of course not! Can you imagine the implications, insecurities,
> and privacy concerns that would be associated with that? Some
> mailservers will confirm or deny if a local address exists, but not
> most --- thankfully.
Yeah, You're right! After 2 seconds of thinking I got it!
And, on Mon, 25 Oct 2010 19:48:55 -0300, Jonathan Tapicer
<tapicer@gmail.com> wrote:
> You can use this class:
> http://www.webdigi.co.uk/blog/wp-content/uploads/2009/01
> /smtpvalidateclassphp.txt
>
> It may not work for some SMTPs.
Many THX !! I'll give it a try ...
> It uses the concepts explained here:
> http://www.webdigi.co.uk/blog/2009/how-to-check-if-an-email
> -address-exists-without-sending-an-email/
... after reading this concept :-)
THX, bye,
greetings to Canada and USA from (now pitch dark) Ol'Germany!
Your Rolf
APPENDIX: My original posting was:
--snip----snip----snip----snip----snip----snip----snip----snip----snip--
> Date: Tue, 26 Oct 2010 00:38:56 +0200, From: webdev@blaettner.com
>
> Hi, folks,
>
> I'm wondering how to checking existence of a given
> mail address like foo@bar.com .
>
> At 1st I tried:
>
> if f (filter_var ($maddr, FILTER_VALIDATE_EMAIL) === false) {
> /* some sort of error handling code here */
> }
>
> where $maddr is the address to be checked.
> But this checks only syntax.. :-(
>
> Is there any other function which checks whether this
> address really exists?
>
> And, of course, I want to avoid sending a test mail just
> for checking :-)
>
> Many THX in advance for suggestions, pointers...
>
> Rolf
--snap----snap----snap----snap----snap----snap----snap----snap----snap--
--
Dipl.phys. Rudolf Otto Blättner,
D 91074 Herzogenaurach, Germany.