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.
Thread starter Similar threads 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 Determine if a public Folder is used by an Application Using Outlook 2
G How to determine the "Distinguished Name string" of a security group for New-ManagementScope command Exchange Server Administration 2
S Determine Managed Folder Policy for Mailbox in Powershell Exchange 2010 SP1 Exchange Server Administration 4
O determine if Outlook is open in VBA Using Outlook 1
A How to determine number of servers required for an organization? Exchange Server Administration 4
N winrm client cannot process the request, cannot determine the content of request - exchange 2010 emc Exchange Server Administration 8
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
D Sending email from Office 365 alias in Outlook Using Outlook 4
S Macro or plug-in to see if specific person was included in this email Outlook VBA and Custom Forms 3
S Body text of Email from invite date/time Outlook VBA and Custom Forms 8
R Outlook 2010 How do you export 2 email Accounts' 2010 Inbox Files to new computer (2019)? Using Outlook 1
R Auto display of new email does not work on non-default account Outlook VBA and Custom Forms 0
J Automatically forward email and apply template Outlook VBA and Custom Forms 0
L Outlook saved email templates Using Outlook 1
B VBA to convert email to task, insert text of email in task notes, and attach copy of original email Outlook VBA and Custom Forms 4
T How can you include Junk Email in Search Results like you can include Deleted Items? Using Outlook 3
B Extracting email addresses from a folder - how to also get the name of the person the address is for? Using Outlook 5
W Replyin to the reply-to email address Outlook VBA and Custom Forms 0
E How to display "Change Folder" in Change Default Email Delivery Location in Exchange Outlook 2016 Using Outlook 1
M Extract all links from Outlook email, send to Excel Using Outlook 2
O Forward a email with modified body Automatically. Outlook VBA and Custom Forms 0
B Outlook 2003 email sending & receiving suddenly stopped working Using Outlook 3
R List folders in a combo box + select folder + move emails from inbox to that folder + reply to that email Outlook VBA and Custom Forms 1
O Email not leaving Outbox when using Excel VBA to sync Outlook account Outlook VBA and Custom Forms 4
T The non-email functions Using Outlook 8
P Outlook 2013 Word Share doc as Email Attachment now brings up Eudora. Using Outlook 1
C How to rename subject line and forward the email Outlook VBA and Custom Forms 2
R Help Revising VBA macro to delete email over different time span Outlook VBA and Custom Forms 0
J Sent Items Folder NOT Showing Correct From Email Address Using Outlook 0
J Outlook Reply > From > Other Email Address... > Address Not Showing in Sent Items... From Email Outlook VBA and Custom Forms 0
T Column to display which email alias a message was sent to Outlook VBA and Custom Forms 6
Marc2019 Need help please! Cannot Setup my outlook email account on my Mac Outlook 2011 Using Outlook.com accounts in Outlook 2
HarvMan Hotmail - Sending email is undeliverable Using Outlook 4
R Error when trying to forward current email item Outlook VBA and Custom Forms 7
H In outlook 365 POP mail Inbox, email takes a long time or never arrives. Using Outlook 1
D Can Exchange Admin Center create a pst for users email/contacts/calendar? Exchange Server Administration 0
T After I send a new email, it remains in the Draft folder Using Outlook.com accounts in Outlook 3
P OWA Settings->Calendar->Events from Email; Setting changes do not hold Using Outlook 1
S How to export urls from email to excel and check the status of the url ? New Slipstick.com Articles 6
P Auto Insert Current Date or Time into Email Subject Outlook VBA and Custom Forms 2
Similar threads


















































Top