Jump to content

Recommended Posts

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
Posted

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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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
×
×
  • Create New...