BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to search for last name in email address (outlook)?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Crazy Horse's crazier lit
Guest





PostPosted: Thu Apr 21, 2005 9:23 pm    Post subject: How to search for last name in email address (outlook)? Reply with 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
Dmitry Streblechenko
Guest





PostPosted: Thu Apr 21, 2005 11:33 pm    Post subject: Re: How to search for last name in email address (outlook)? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.