 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Crazy Horse's crazier lit Guest
|
Posted: Thu Apr 21, 2005 9:23 pm Post subject: How to search for last name in email address (outlook)? |
|
|
We use Outlook for our mail in-house.
One of our apps allows the user to enter "whatever" in the "requested by"
field. When the request is accomplished, an email is sent to the requester.
If they enter <first name> <last name> or <first initial> <last name>, I can
retrieve their email address. However, I want to be able to locate their
email address even if they don't give a first name. For example, if the name
entered is "Dr. Kildaire" I want to find any email address with the string
"Kildaire" in it (at least, as long as there is one and only one such email
address).
How to do that (query the Outlook list of email addresses) with either the
Server components or OfficePartner?
--
Download Blackbird Crow Raven's book
"STILL CASTING SHADOWS: Two American Families 1620-2006"
(.exe and Delphi source): http://cc.borland.com/ccweb.exe/listing?id=23106
|
|
| Back to top |
|
 |
Dmitry Streblechenko Guest
|
Posted: Thu Apr 21, 2005 11:33 pm Post subject: Re: How to search for last name in email address (outlook)? |
|
|
Call Namespace.CreateRecipient, then Recipient.Resolve. It will perform the
same name resolution as when you type a recipient name in a new message.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Crazy Horse's crazier little brother" <cshannon (AT) d4sw (DOT) com> wrote
| Quote: | We use Outlook for our mail in-house.
One of our apps allows the user to enter "whatever" in the "requested by"
field. When the request is accomplished, an email is sent to the
requester.
If they enter <first name> <last name> or <first initial> <last name>, I
can retrieve their email address. However, I want to be able to locate
their email address even if they don't give a first name. For example, if
the name entered is "Dr. Kildaire" I want to find any email address with
the string "Kildaire" in it (at least, as long as there is one and only
one such email address).
How to do that (query the Outlook list of email addresses) with either the
Server components or OfficePartner?
--
Download Blackbird Crow Raven's book
"STILL CASTING SHADOWS: Two American Families 1620-2006"
(.exe and Delphi source): http://cc.borland.com/ccweb.exe/listing?id=23106
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|