Jump to content
Sign in to follow this  
DigDeep

_OL_Wrapper_SendMail error 1003 on Windows 10 1803

Recommended Posts

@water, I am seeing some issues running the OutlookEx.au3 and using the _OL_Wrapper_SendMail() only on Win 10 - 1803 machines.

Any other Windows version other than 1803 is working all good.

Error: @error 1003, @extended: 1.

Edited by DigDeep

Share this post


Link to post
Share on other sites

All 1xxx errors denote an error returned by _OL_FolderAccess.
@error = 3 stands for: Error accessing specified folder. This is a problem accessing a (shared) default folder.

Can you please post the code you run?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

This is a test sample.

I have multiple applications running on AutoIT using the same folder for samples and logs. But none of the OS (Win 7, 8, 10) are showing this error. It's only on Win 10 - 1803 build I am getting error. I have tested this on multiple machines with 1803 build and all are giving the same error.

Local $data = "Testing"

Global $iOL_Debug = 2
Global $oOutlook = _OL_Open()
_OL_Wrapper_SendMail($oOutlook, 'ToUsername', "", "", "Test", $data, "", $olFormatHTML, $olImportanceHigh)
If @error <> 0 Then Exit MsgBox(16, "Email ALert", "Error sending email to ToUsername@xyz.com. @error = " & @error & ", @extended: " & @extended)

 

Share this post


Link to post
Share on other sites

@water, posting the file location and the data to be read...

Global $INI = 'C:\Data'
Global $data = IniRead($INI & '\test.ini', "Sample1", "OSName", "Default Value")

Global $iOL_Debug = 2
Global $oOutlook = _OL_Open()
_OL_Wrapper_SendMail($oOutlook, 'ToUsername', "", "", "Test", $data, "", $olFormatHTML, $olImportanceHigh)
If @error <> 0 Then Exit MsgBox(16, "Email ALert", "Error sending email to ToUsername@xyz.com. @error = " & @error & ", @extended: " & @extended)
Edited by DigDeep

Share this post


Link to post
Share on other sites

I wonder why a build of WIn 10 should affect Outlook?

  • Has MS Office been updated as well (by you or MS)?
  • Do all the machines run the same version of Outlook?
  • Do all the machines run the same language?

As _OL_Folderaccess is something _OL_Wrapper_SendMail does unter the covers I do not think it is a coding error by me or you :blink:
So maybe it is a bug in MS Outlook?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

I am using o365 office config. but the same Office setup is on the other OS versions and builds too where it is working fine.

Share this post


Link to post
Share on other sites

@water, I have re-checked and looks like the OutlookEX.au3 is not compatible with o365 environment due to the COM extensions. I looked at multiple solutions and found another alternate for using BLAT service which is working fine.

I am good for now but if the OutlookEX can be made available to work with o365 in future will be great. Specially when OutlookEX has great features to work with Outlook.

Share this post


Link to post
Share on other sites

Glad you found a solution to solve your problem :)
We do not have o365 where I work and I do not know which kind of interfaces o365 provides.
So I fear the OutlookEX UDF will be limited to Outlook on premise for the time being.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

Seems you need to use the REST API to access o365 mail items. https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/mail_api_overview
This will be a completely different type of UDF.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - 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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...