water Posted February 7, 2017 Share Posted February 7, 2017 Then let's try it another way: #include <OutlookEX.au3> Global $olMobileItemSMS = 8 Global $oOL = _OL_Open() ; Create an SMS message and provide a body text value. $oSMS = $oOL.CreateItem($olMobileItemSMS) If @error then Exit MsgBox(0, "Error", "Error creating item. @error = " & @error) $oSMS.Subject = "Test SMS" $oSMS.Body = "Short Message Service (SMS) message from Outlook 2010." ; Display the Inspector $oSMS.Display() My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Lights_On Posted February 7, 2017 Author Share Posted February 7, 2017 Im starting to feel bad now :-/ Error creating item. @error = -2147024809 Link to comment Share on other sites More sharing options...
water Posted February 7, 2017 Share Posted February 7, 2017 Now we need some more error information: #include <OutlookEX.au3> #include <Debug.au3> _DebugSetup() _DebugCOMErrror() Global $olMobileItemSMS = 8 Global $oOL = _OL_Open() ; Create an SMS message and provide a body text value. $oSMS = $oOL.CreateItem($olMobileItemSMS) If @error then Exit MsgBox(0, "Error", "Error creating item. @error = " & @error) $oSMS.Subject = "Test SMS" $oSMS.Body = "Short Message Service (SMS) message from Outlook 2010." ; Display the Inspector $oSMS.Display() Should display all errors in a separate window. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Lights_On Posted February 7, 2017 Author Share Posted February 7, 2017 not sure if the info is what you were hoping for? Link to comment Share on other sites More sharing options...
water Posted February 7, 2017 Share Posted February 7, 2017 I would have expected more detailed error messages. But I will check tomorrow when I return to my office. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Lights_On Posted February 7, 2017 Author Share Posted February 7, 2017 Thank you Water. i am appreciative of your help. Link to comment Share on other sites More sharing options...
water Posted February 8, 2017 Share Posted February 8, 2017 There was a typo in my script (_DebugCOMErrror had 3 "r"). Could you please try again? #include <OutlookEX.au3> #include <Debug.au3> _DebugSetup() _DebugCOMError() Global $olMobileItemSMS = 8 Global $oOL = _OL_Open() ; Create an SMS message and provide a body text value. $oSMS = $oOL.CreateItem($olMobileItemSMS) If @error then Exit MsgBox(0, "Error", "Error creating item. @error = " & @error) $oSMS.Subject = "Test SMS" $oSMS.Body = "Short Message Service (SMS) message from Outlook 2010." ; Display the Inspector $oSMS.Display() My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted February 8, 2017 Share Posted February 8, 2017 When i run this script on my machine I get the same error code. But I'm sure this is caused by my Outlook not being configured for SMS. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted February 8, 2017 Share Posted February 8, 2017 This site exactly describes how to setup Outllok/Exchange for SMS:https://support.office.com/en-us/article/Send-and-receive-text-messages-SMS-8a8c38d5-a197-4df7-929b-08c5e259a0ca My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Lights_On Posted February 8, 2017 Author Share Posted February 8, 2017 Hi Water, Agreed the web link describes how to set up SMS as I have. I already noticed the "rrr" typo so all information provided is correct. apologies, i felt it rude to point it out given you have been so helpful. Thank you. Link to comment Share on other sites More sharing options...
water Posted February 8, 2017 Share Posted February 8, 2017 No problem. But you still get the same error code as I do? This error (and the german error message) means: Invalid Parameter. So it seems Outlook no longer accepts this kind of parameter. Which version of the Exchange Server do you run? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Lights_On Posted February 8, 2017 Author Share Posted February 8, 2017 Hi Water, I have runs the your reposed script just for certainty. attached result for you. I also follow the link here to determine exchange: https://support.office.com/en-us/article/Determine-the-version-of-Microsoft-Exchange-Server-my-account-connects-to-D427465A-CE3B-42BD-9D83-C7D893D5D334 And i do not have a match. My version is 15.1.xxx.xxx so non match any variant? they are Office 365 accounts added to Outlook 2010 and the SMS is provided via another service provider. Link to comment Share on other sites More sharing options...
water Posted February 8, 2017 Share Posted February 8, 2017 Version 15.1 seems to be Exchange 2016. I get 14.3 for Exchange 2010. Maybe there is a limitation not just for Outlook 2010 but for Exchange 2010 as well? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Lights_On Posted February 8, 2017 Author Share Posted February 8, 2017 Yes this could be possible. The details we seek to understand do not seem so well document to me - I have searched a fair bit before positing for support. Link to comment Share on other sites More sharing options...
water Posted February 8, 2017 Share Posted February 8, 2017 Maybe it is easier to install an internal SMS gateway or to use an external Mail-to-SMS-provider. As Outlook drops SMS/MMS support after Outlook 2010 you would need to search for an alternative anyway. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Lights_On Posted February 8, 2017 Author Share Posted February 8, 2017 Hi Water, I am in agreement. The service provider I use has an API pack I could use perhaps - I have requested it and shall see how i get on - it would provide the same solution's just integrated into AU3 and not using Outlook as a processing system / tool. Thank you again for you time and help. Link to comment Share on other sites More sharing options...
water Posted February 8, 2017 Share Posted February 8, 2017 Good luck My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now