Forum Discussion
Hello,
Can you elaborate on what exactly error or behavior you are getting with Outlook 2013 when trying to use the solution from the 'how to' article?
Keeping the tutorial almost the same, except changing the version number from 14 to 15, I was always getting "The <account name> account was not found or the SendAndRecieve operation failed" error message. This error message is in the ELSE after the if condition "isMessageReceived2010(accountName, senderEMail, eMailSubject)" portion.
I have done some breakpoint and looping through the for-loop in the isMessageReceived2010 method to see my problem. It seems that the code "items.Item(i).SenderEmailAddress" was returning an email that I was not expecting.
The email was something like
/O=EXCHANGELABS/OU=EXCHANGE ADMINISTRATIVE GROUP (FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=A9ED7C7DCDA1450581D6D0B072F4A73F-VICTOR
So I decided to parse the sender email for the expected characters such as VICTOR instead of looking for victor@domain.com format. If you know of an easier way to handle strange email sender address, please let me know.
Related Content
- 4 years agoMr_Bro
Recent Discussions
- 3 days agoAndiiiA
- 3 days agomegha_phophalia
Log functions
Solved4 days agoAurore