tsystems Posted October 24, 2013 Share Posted October 24, 2013 I just need to copy the body and from/to lines of the latest sent email to the clipboard or a variable or whatever. I've perused the OutlookEX UDF wiki but it is not clear to me. Could somebody please throw me a snippet of code or something? Link to comment Share on other sites More sharing options...
water Posted October 24, 2013 Share Posted October 24, 2013 Do you create and send the mail using the OutlookEX UDF? 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...
tsystems Posted October 25, 2013 Author Share Posted October 25, 2013 Agua, The emails are created manually. A template is opened, filled, and sent. I would like to automate the following subsequent 3 steps which we are currently doing manually: Open sent email, hit reply/forward, ^a^c, close two windows, paste into reporting tool and then replace two sensitive lines with asterisks. Thanks for the reply! Link to comment Share on other sites More sharing options...
water Posted October 25, 2013 Share Posted October 25, 2013 If you want to start your script as soon as a mail has been sent you should have a look at Outlook events. Example script _OL_Example_SentMail_Event.au3 shows how to grab each sent mail (the coding is not perfect and needs to be changed before using in production). You then have the object of the sent mail and can use function _OL_ItemGet to retrieve properties Body, From and To. Is this what you are looking for? 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...
tsystems Posted October 25, 2013 Author Share Posted October 25, 2013 Automatically triggering the script isn't high importance. But I can't find ItemGet usage examples in the wiki here http://www.autoitscript.com/wiki/OutlookEX_UDF_-_Mail_Item I'm probably just missing something. Link to comment Share on other sites More sharing options...
water Posted October 25, 2013 Share Posted October 25, 2013 Every function of the UDF comes with a help file (function.html) and an example (function.au3) 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