Happy82

outlook udf

2 posts in this topic

#1 ·  Posted (edited)

I am trying to access the inbox in my outlook. I have 2 inbox. One is associated to my name. Another one is shared inbox between 3. I am able to read/write emails on both the inbox.

I am using the following code

#include <OutlookEX.au3>

Global $oOutlook = _OL_Open()
Global $aFolder = _OL_FolderAccess($oOutlook, "\\Expense Reports\Inbox", Default, Default)
If @error Then
    MsgBox(0, "Error", "Error Accessing Inbox:  " & ":" & @error, 5)
    Exit
Else
    MsgBox(0, "Success", "Success Accessing  " , 5)
EndIf
_OL_Close($oOutlook)

it gives me the error code 1.

Instead of "\\Expense Reports\Inbox" if i use "*" which points to my inbox it works.

I have access to the folder \\Expense Reports\Inbox. I can read/write the emails from that folder.

Any help ....... :)

Also if i change "*" to "\\angamuthus@xxxx.co" which is my actual root folder. I still get the error 3: Error accessing specified folder.

 

Can some throw some light on this......

Edited by Happy82

Share this post


Link to post
Share on other sites



I have added a section to the wiki that explains how to access folder items. 

I'm on vacation right now so I might be a bit slow in answering further questions 😬


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Similar Content