Jump to content

_OL_Wrapper_SendMail error 1003 on Windows 10 1803


Recommended Posts

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 2021-06-05 - Version 1.5.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (NEW 2021-06-14 - Version 1.6.5.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 (NEW 2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

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

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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)

 

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
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 2021-06-05 - Version 1.5.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (NEW 2021-06-14 - Version 1.6.5.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 (NEW 2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

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

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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.

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 2021-06-05 - Version 1.5.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (NEW 2021-06-14 - Version 1.6.5.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 (NEW 2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

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

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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 2021-06-05 - Version 1.5.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (NEW 2021-06-14 - Version 1.6.5.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 (NEW 2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

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

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...