|
-
Jul 22nd, 2009, 01:02 PM
#1
Thread Starter
Hyperactive Member
Verify email against address book?
Hello Everyone,
I am writing a VBScript that queries an Oracle database for leases that are expiring and then emails the leasing agent based on the "name" field in the database. The name is supposed to be entered as "First Name" "Last Name". The default smtp format for all employee is first initial last name @company.com. The problem is that since the text field you enter the name in excepts anything, there is room for typos and errors... Therefore, the email address may not be valid.
Since all of the email addresses should be for employees, is there a way to confirm the existence of the email address against the address book?
Any help or comments is appreciated. Thanks!
Chrissy
-
Jul 24th, 2009, 05:06 AM
#2
Re: Verify email against address book?
It'd be easier if you provided this as a dropdown list or as an autosuggest feature that showed them possible values as they entered characters.
But this depends - where is the address book stored?
-
Jul 27th, 2009, 07:57 AM
#3
Thread Starter
Hyperactive Member
Re: Verify email against address book?
That is not possible. The script runs atutomatically and there is no user input. It pulls info directly from the database.
-
Jul 28th, 2009, 01:23 AM
#4
Re: Verify email against address book?
In this case, if there's a typo in the script, there isn't going to be much in the way of corrections since services won't give you a "Did you mean?" response.
As for checking the existence, again, where is the actual address book stored?
-
Jul 28th, 2009, 07:56 AM
#5
Thread Starter
Hyperactive Member
Re: Verify email against address book?
We have Microsoft Exchange & Outlook. I would assume that the company address book would be stored on there somewhere... The scripts are run on the server, I was hoping there was a way to compare the email address that the script comes up with to what is stored in the company address book in Outlook.
-
Jul 28th, 2009, 10:47 AM
#6
Re: Verify email against address book?
This is a big topic - AFAIK, to talk to Exchange, you need to learn how to use ADSI. Do a search for ADSI and read up on it. There's also a simple example here that you can use:
http://www.codeproject.com/KB/asp/se...&select=835752
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|