Re: Getting at addressbook information on an Exchange Server...

From: Date: Thu, 26 Sep 2002 13:59:35 +0000
Subject: Re: Getting at addressbook information on an Exchange Server...
References: 1 2 3 4  Groups: php.windows 
Request: Send a blank email to php-windows+get-16031@lists.php.net to get a copy of this message
Can you send that to me too? regards, Martijn M.B. wrote:
I must say, I'm interested too. M.B. "Ernani Joppert Pontes Martins" <ernani_listas@terra.com.br> schreef in bericht news:20020918054140.12114.qmail@pb1.pair.com...
I have made a com+ module in php that uses CDO (Collaboration Data
Objects)
to interact with exchange server profiles and send e-mails with php like a webmail. Are you interested ? Cheers, Ernani "Ross Fleming" <r.fleming@clara.co.uk> escreveu na mensagem news:PKEOKJGBCLBAKGDHPPFCIEECCEAA.r.fleming@clara.co.uk...
Question 1 I'm not too sure about... Question 2: How do you mean spell check it? There are several levels of depth you
could
take this to. You could just check the format of it (ie something@somewhere.com) using a pattern matching technique ereg(
"^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|int)$"
,$email) is a rather simple one. This only checks that it's a valid format of email address however. It doesn't stop php emailing nonexistantaddress@onebigTLD.com (going out on
a
limb and assuming this doesn't exist!) There are ways of taking this further however. You can explode $email
by
the @ character and checking that the domain actually exists by simply pinging it or connecting to the relevant smtp server. This again,
doesn't
stop php from emailing gobbledegook1101240444@yahoo.com (again, probably doesn't exist but the format is ok and the TLD exists). The next step
you
could take (and this is getting a bit involved here... depends how much
time
you've got on your hands) is to talk to the smtp server and attempt to
find
out whether the user exists or not. I believe that it is possible to
get
an
smtp server to confirm or deny a users existance. Like I say, these are varying levels of checking, I have to say I've
only
ever went so far as to resolving the TLD through a DNS server. A solution you may wish to consider, is only allowing trusted email addresses to be used. One way I have done this in the past is to allow
a
user to register an email address, and then email a random cipher to
this
address and make the user enter the cipher into a validation page,
thereby
validating the email address a genuine and held by the user. I'd be glad to help if you've got any questions about the solutions I've given. :) HTH Ross
-----Original Message----- From: RS Herhuth [mailto:ronherhuth@mindspring.com] Sent: 24 August 2001 15:31 To: php-windows@lists.php.net Subject: [PHP-WIN] Getting at addressbook information on an Exchange Server... Two questions (well four if you count the sub questions): 1. Is there a way to get at the addressbook information stored on an Exchange Server using PHP? Is there any documentation anyone knows of that can aid in this? 2. Is it possible to create an inline spellchecker that could be used
to
spellcheck an email before it is sent using PHP? Is there any documentation anyone knows of that can aid in this? Thanks, Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.windows (#16031) next »