sebastianchettiar Posted November 1, 2018 Share Posted November 1, 2018 Hi Team, Can I please get an example of saving email from outlook after it is sent to local hard drive ? Regards Link to comment Share on other sites More sharing options...
sebastianchettiar Posted November 1, 2018 Author Share Posted November 1, 2018 I am using this code #Include "Outlook.au3" $oOutlook = _OutlookOpen() _OutlookSaveMail($oOutlook,$olFolderInbox,"","Appointments","",$olMSG,"C:\Support\","",0) It does not save the email with subject "Appointments" in "C:\Support\"Folder Any help would be appreciated. Link to comment Share on other sites More sharing options...
water Posted November 1, 2018 Share Posted November 1, 2018 Welcome to AutoIt and the forum! Please read the functions description in the UDF and check the example scripts. The UDF does not work the way you use it. 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...
Developers Jos Posted November 1, 2018 Developers Share Posted November 1, 2018 Moved to the appropriate forum. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
sebastianchettiar Posted November 1, 2018 Author Share Posted November 1, 2018 Hi Guys, Sorry I couldn't find any example of saving outgoing emails to local drive. May be I am not looking at the wrong place. Please help Regards Link to comment Share on other sites More sharing options...
water Posted November 1, 2018 Share Posted November 1, 2018 First: Seems you are using the old version of the Outlook UDF written by Wooltown. I suggest to use the successor written by Wooltown and me: OutlookEX UDF (for download pelase check my signature). If you can make sure that you just need to process all mails being sent while your script is running then Outlook events are the way to go. Check the _OL_Example_SentMail_Event.au3 on this page: The example retrieves the object of the sent mail which you can pass to _OL_ItemSave. 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...
sebastianchettiar Posted November 5, 2018 Author Share Posted November 5, 2018 Thank you so much for your help. 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