water Posted May 24, 2016 Author Share Posted May 24, 2016 Is it possible to test the 32-bit version of the script on a computer with 32-bit Outlook? 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 Link to comment Share on other sites More sharing options...
DasIch Posted May 24, 2016 Share Posted May 24, 2016 im afraid not.. i remember a bug in autoit while compiling 64 bit scripts. hang on, ill need to test something. Link to comment Share on other sites More sharing options...
DasIch Posted May 24, 2016 Share Posted May 24, 2016 Okay, did not work. The bug was, that if you run a script which is compiled as 64 bit that this script is not starting properly as x64. so you had to run a start-file which opens the script as true x64. Link to comment Share on other sites More sharing options...
water Posted May 24, 2016 Author Share Posted May 24, 2016 The folder name accessed in _OL_FolderAccess is correct and you are sending the test message to the inbox of this mailbox? 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 Link to comment Share on other sites More sharing options...
DasIch Posted May 24, 2016 Share Posted May 24, 2016 Is it the Folder Name? Or the folder path like "\\domain\mailbox"? and yeah, i send it directly to the mailbox. Link to comment Share on other sites More sharing options...
DasIch Posted May 24, 2016 Share Posted May 24, 2016 Oh, or even the email address?! Link to comment Share on other sites More sharing options...
water Posted May 24, 2016 Author Share Posted May 24, 2016 It's the mail address you see in the folderlist pane on the left side in Outlook. 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 Link to comment Share on other sites More sharing options...
r3dbull Posted May 26, 2016 Share Posted May 26, 2016 (edited) Quick question on this special UDF, which I can't still figure out... How can I select the account which I want to send the Email from, in the case I have multiple accounts configured in my Outlook? My script and this UDF are working good so far with a single-account Outlook (Currently using Win7 / Win10 and Outlook 2016). $oOL = _OL_Open() _OL_Wrapper_SendMail($oOL, "ordini@mydomain.com", "", "", "FAX Ordine", "<font face='verdana' color='red'>Nome FAX: </font>" & _ "<font face='verdana' color='black'>"&$faxname&"</font><br><font face='verdana' color='red'>Archiviato in: </font><a href=" & _ "" & $link & ">" & $FaxArchiveDir & "\" & @YEAR & "\" & @MON & "\" & @MDAY &"\</a>",$FaxLocalArchiveDir & "\" & @YEAR & _ "\" & @MON & "\" & $faxname,$olFormatHTML) _OL_Close($oOL) Thanks in advance for any support, Luciano. Edited May 26, 2016 by r3dbull Link to comment Share on other sites More sharing options...
water Posted May 26, 2016 Author Share Posted May 26, 2016 Please check this page in the wiki: https://www.autoitscript.com/wiki/OutlookEX_UDF_-_Mail_Item "Send a mail on behalf of another user" is what you are looking for. 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 Link to comment Share on other sites More sharing options...
r3dbull Posted May 26, 2016 Share Posted May 26, 2016 (edited) I've looked at that but I can't get rid of the following error: "C:\Program Files (x86)\AutoIt3\Include\OutlookEx.au3" (1272) : ==> The requested action with this object has failed.: $oFolder = $oFolder.Folders($aFolders[$iIndex]) $oFolder = $oFolder^ ERROR EDIT:// I worked out the solution, actually I needed to specify the folder where to create $oItem: Global $oItem = _OL_ItemCreate($oOL, $olMailItem, "address@domain.com\Drafts", "", _ "Subject=TestMail", "BodyFormat=" & $olFormatHTML, "HTMLBody=Bodytext in <b>Test</b>.", "SentOnBehalfOfName=address@domain.com") This way is working perfectly! Thanks a LOT! Luciano Edited May 26, 2016 by r3dbull Link to comment Share on other sites More sharing options...
water Posted May 26, 2016 Author Share Posted May 26, 2016 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 Link to comment Share on other sites More sharing options...
MWIProd Posted June 20, 2016 Share Posted June 20, 2016 (edited) Hello Master Water. The function _OL_FolderAccess failed when folder doesn't exist : $aFolder = _OL_FolderAccess($g_oOutlook, '\\address@domain.com\Folder_exists', $olFolderInbox) ConsoleWrite(@error & @CRLF) $aFolder = _OL_FolderAccess($g_oOutlook, '\\address@domain.com\Folder_doesnt_exists', $olFolderInbox) ConsoleWrite(@error & @CRLF) Result : 0 "......\OutlookEx.au3" (1272) : ==> The requested action with this object has failed.: $oFolder = $oFolder.Folders($aFolders[$iIndex]) $oFolder = $oFolder^ ERROR I use UDF 1.2.0.0 on SciTE 3.6.2 with AutoIt 3.3.14.2 on Windows 7 x64 Edited June 20, 2016 by MWIProd Link to comment Share on other sites More sharing options...
water Posted June 20, 2016 Author Share Posted June 20, 2016 Do you have set up a COM error handler in your script? 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 Link to comment Share on other sites More sharing options...
MWIProd Posted June 20, 2016 Share Posted June 20, 2016 No. But I thought it is not necessary because _OL_FolderAccess help says : Quote Return values .: Success - one-dimensional one based array with the following information: ; |1 - Object to the folder ; |2 - Default item type (integer) for the specified folder. Defined by the Outlook OlItemType enumeration ; |3 - StoreID (string) of the store to access the folder by ID ; |4 - EntryID (string) of the folder to access the folder by ID ; |5 - Folderpath (string) ; Failure - Returns "" and sets @error: ; |1 - $iFolderType is missing or not a number ; |2 - Could not resolve specified User in $sFolder ; |3 - Error accessing specified folder ; |4 - Specified folder could not be found. @extended is set to the index of the subfolder in error (1 = root folder) ; |5 - Neither $sFolder, $iFolderType nor $iItemType was specified ; |6 - No valid $iItemType was found to set the default folder $iFolderType accordingly Link to comment Share on other sites More sharing options...
water Posted June 20, 2016 Author Share Posted June 20, 2016 The OutlookEX UDF sets up a COM error handler (which is needed with AutoIt 3.3.14.x) but only, if there isn't already a COM error handler. I will check tomorrow. 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 Link to comment Share on other sites More sharing options...
water Posted June 21, 2016 Author Share Posted June 21, 2016 (edited) That's a bug in version 1.2.0.0. Please replace line 186 in function _OL_Open If $__iOL_Debug = 0 And Number(StringReplace(@AutoItVersion, ".", "")) < 3392 Then with If $__iOL_Debug = 0 And (Number(StringReplace(@AutoItVersion, ".", "")) < 3392 Or Number(StringReplace(@AutoItVersion, ".", "")) > 33120) Then Edited June 21, 2016 by water 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 Link to comment Share on other sites More sharing options...
MWIProd Posted June 21, 2016 Share Posted June 21, 2016 Good Job. Now @error = 4 if folder doesn't exist. Link to comment Share on other sites More sharing options...
water Posted June 21, 2016 Author Share Posted June 21, 2016 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 Link to comment Share on other sites More sharing options...
david1337 Posted September 7, 2016 Share Posted September 7, 2016 Hi water Are there any knows compatibility issues with the _OL_MailSignatur* functions and Office 2016? I know that _OL_MailSignatur* functions use Word. Autoit comes up with error: Line 12227 (a line that doesn't even exists in the script btw) Link to comment Share on other sites More sharing options...
Kaimberex Posted September 7, 2016 Share Posted September 7, 2016 Just now, david1337 said: Hi water Are there any knows compatibility issues with the _OL_MailSignatur* functions and Office 2016? I know that _OL_MailSignatur* functions use Word. Autoit comes up with error: Line 12227 (a line that doesn't even exists in the script btw) When you compile a script any includes you have in your script will be added to the top when its compiled try running a syntax check in SciTE before compiling and you can get the exact line number. 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