How to determine if email address resides in Exchange w/o OutlookSecurity prompts?

Status
Not open for further replies.
T

Tim s

See below for underlying goals.

Goal: Retrieve shared default folder based on an email address, in

code running outside the outlook.exe address space, on

Outlook 2002, 2003, 2007, in managed code.

Tools: Outlook Remeption 4.7; Outlook Object Model

Cant use RDOSession.GetSharedDefaultFolder() due to COM Marshalling

Bugs acccording to RDO Documentation

//snippet

1 var recipient = NameSpace.CreateRecipient

("joe@exchangeserver.com");

2 var sharedCalendarFolder = NameSpace.GetSharedDefaultFolder

(recipient, OlDefaultFolders.olFolderCalendar);

//NOTE: Line 2 is SLOW when on Outlook 2007 and the user is not on

Exchange, and will get a COMexception

Challenge: Fill in method

Bool IsExchangeUser(Recipient recipient)

{

//NOTE: recipient.AddressEntry and AddressEntry.GetExchangeUser()

generates security prompts

//NOTE: MAPIUtils.CreateRecipient(..) throws COMException with

message "Catastrophic Failure" randomly

}
 
D

Dmitry Streblechenko

Re: How to determine if email address resides in Exchange w/o Outlook Security prompts?

Look at the address type (Recipient.AddressEntry.Type) - EX vs SMTP.

If you are using Redemption (which exposes GetSaherdDefaultFolder), why do

you care about the security prompts in Outlook?

Dmitry Streblechenko (MVP)

-

"Tim s" <tsmojver@gmail.com> wrote in message

news:bb39d2f6-cda7-4c4e-b582-ea9b6d559610@q14g2000vbn.googlegroups.com...
> See below for underlying goals.

> Goal: Retrieve shared default folder based on an email address, in
> code running outside the outlook.exe address space, on
> Outlook 2002, 2003, 2007, in managed code.

> Tools: Outlook Remeption 4.7; Outlook Object Model

> Cant use RDOSession.GetSharedDefaultFolder() due to COM Marshalling
> Bugs acccording to RDO Documentation

> //snippet
> 1 var recipient = NameSpace.CreateRecipient
> ("joe@exchangeserver.com");
> 2 var sharedCalendarFolder = NameSpace.GetSharedDefaultFolder
> (recipient, OlDefaultFolders.olFolderCalendar);

> //NOTE: Line 2 is SLOW when on Outlook 2007 and the user is not on
> Exchange, and will get a COMexception

> Challenge: Fill in method

> Bool IsExchangeUser(Recipient recipient)
> {
> //NOTE: recipient.AddressEntry and AddressEntry.GetExchangeUser()
> generates security prompts
> //NOTE: MAPIUtils.CreateRecipient(..) throws COMException with
> message "Catastrophic Failure" randomly
> }

>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
oliv- determine to which address an email has been sent Outlook VBA and Custom Forms 3
M How can I determine which user read an email Exchange Server Administration 4
A Rules - how to determine if all conditions in rule are true or false Outlook VBA and Custom Forms 5
M How does Outlook determine item numbers in a folder? Outlook VBA and Custom Forms 3
T How to determine when I switch from mail to calendar etc. Using Outlook 9
A account hacked, need software to determine what emails have been sent Using Outlook 1
J VBA code to determine 'show' state of SearchBar Using Outlook 7
L Outlook Meeting Response: determine when a meeting response has been edited Using Outlook 1
M RDO: using TypeOf to determine [OOM] Class Outlook VBA and Custom Forms 1
S How to determine if message will be encrypted on Send Outlook VBA and Custom Forms 1
T Can I determine if an item is in a shared calendar? Outlook VBA and Custom Forms 5
A Links in email getting error message about group policy Using Outlook 4
richardwing Auto forward email that is moves into a specific outlook folder Outlook VBA and Custom Forms 1
J Recommendations for Outlook Duplicate Email Remover Using Outlook 6
Geldner Tweak Junk Email Reporting tool to default to particular email on send? Using Outlook 3
S Outlook 365 Can I change the possible range of highlighting colours when writing an Outlook email? Using Outlook 1
V Can one change the formatting of email title blocks? Using Outlook 0
P default font when sending email from browser Using Outlook 1
D VBA Macro to Print and Save email to network location Outlook VBA and Custom Forms 1
B IMAP server rejects sent email - cannot deliver messages Using Outlook 2
TedSch Small vba to kill political email Outlook VBA and Custom Forms 3
X Open Hyperlinks in an Outlook Email Message (Help with Diane's solution) Outlook VBA and Custom Forms 3
e_a_g_l_e_p_i Email notifications changed with Outlook 2021 Using Outlook 8
glnz How to retrieve or redo Verizon.net email password without affecting Outlook connection? Using Outlook 1
Z Copy specific email body text Outlook VBA and Custom Forms 0
D ISOmacro to extract active mail senders name and email, CC, Subject line, and filename of attachments and import them into premade excel spread sheet Outlook VBA and Custom Forms 2
M Outlook 365 refuses to send email Using Outlook 1
B Search and Find Email by Folder Name Outlook VBA and Custom Forms 2
K Closing external IMAP email... Outlook 2013 Using Outlook 0
L Capture email addresses and create a comma separated list Outlook VBA and Custom Forms 5
C Email bomb processing Outlook VBA and Custom Forms 1
O What would be the recommended way to change an email address (family member)? Using Outlook 0
A Outlook 2016 Macro to Reply, ReplyAll, or Forward(but with composing new email) Outlook VBA and Custom Forms 0
L Checking Sender Email Address for trusted domain from list on intranet Outlook VBA and Custom Forms 4
J How do you disable address search box when typing @ in body of email? Using Outlook 0
S HTML Code Embedded in String Within Open Outlook Email Preventing Replace(Application.ActiveInspector.CurrentItem.HTMLBody From Working Outlook VBA and Custom Forms 4
Victor.Ayala Automated way to check the option "Show this folder as an email Address Book" Outlook VBA and Custom Forms 2
D Wrong email address in Outlook 2003 "From" tab in new outgoing emails Using Outlook 4
D Forwarding email based on the attachment file type and specific text found on the attachment file name Outlook VBA and Custom Forms 1
F Forward incoming email with 4 embedded images in the body without original sender Outlook VBA and Custom Forms 22
W Macro to Filter Based on Latest Email Outlook VBA and Custom Forms 6
D Create advanced search (email) via VBA with LONG QUERY (>1024 char) Outlook VBA and Custom Forms 2
C Outlook 2007 Removing then adding account restores junk email processing Using Outlook 0
G Place jpg in body of email Outlook VBA and Custom Forms 1
F Wishlist Outlook suddenly began synchronizing deleted items every time I delete a single email. Using Outlook 2
N Save Selected Email Message as .msg File Outlook VBA and Custom Forms 12
HarvMan Toggle between calendar and email in Outlook 365 Using Outlook 12
F Email being marked as Spam by Gmail and not being visible in Outlook Using Outlook 5
G Email time stamp Using Outlook 2
G Schedule recurring email and attachments display Outlook VBA and Custom Forms 3

Similar threads

Top