Wooltown Posted February 9, 2009 Share Posted February 9, 2009 (edited) This UDF will be superseeded by a new UDF: OutlookEX.UDF, updated by: WaterCheck it out and write comments if we have designed it an a good and easy way.Updated: 2010-01-13 - All With ... EndWith removed.Updated: 2009-10-29 - _OutlookModifyAppointment() If run 2 times in a row, error: "Outlook.au3 (1534) : ==> Nested "With" statements are not allowed.:"Updated: 2009-04-17 - OutlookGetMail & OutlookSaveMail, see belowUpdated: 2009-03-25 - OutlokGetAppointments, returning more valuesUpdated: 2009-03-23 - Get rid of Security Warnings when reading/modifying - http://www.mapilab.com/outlook/security/2009-03-12 - 5 new functions, better DemoFiles grouped in different files.A draft to an Outlook UDF, tested on Windows 2000 and Outlook 2003******************************************************************* Syntax for the functions, look in Outlook.au3 on each function *******************************************************************24 Functions so far:_OutlookSendMail - Updated 2009-02-24 - Several attachments didn't work, fixed_OutlookCreateNote_OutlookCreateTask_OutlookCreateAppointment - New 2009-02-11_OutlookCreateContact - New 2009-02-12 ***** On the General Tab I have failed to find how to set Contacts and Private *****_OutlookCreateDistList - New 2009-02-17 _OutlookModifyAppointment - Updated 2009-10-29_OutlookGetAppointments - New 2009-02-24 - Get an Array of all appointments _OutlookGetMail - Updated 2009-04-17, Change read Status, access root folder, Updated 2009-03-12, Added OnlyReturnUnread, New 2009-02-26 - Get an array of all mail _OutlookSaveMail - Updated 2009-04-17, Change read Status, access root folder, New 2009-02-27 - Save a mail and it's attachments to the hard disk, The characters \/:*?"<>| which is not allowed in filenames is replaced by __OutlookDeleteMail - New 2009-03-02 - Delete one or more mail from a folder_OutlookGetTasks - New 2009-03-04 - Get an array of all Tasks_OutlookGetNotes - New 2009-03-04 - Get an array of all Notes_OutlookGetContacts - New 2009-03-04 - Get an array of all Contacts_OutlookDeleteNote - New 2009-03-05 - Delete a note_OutlookDeleteTask - New 2009-03-05 - Delete a task_OutlookGetDistLists - New 2009-03-05 - Get the contents of one or more distribution lists_OutlookDeleteTask - New 2009-03-06 - Delete a task_OutlookModifyTask - New 2009-03-06 - Modify a Task_OutlookDeleteDistListMember() - New 2009-03-09 - Delete a member in a distribution list_OutlookDeleteDistList() - New 2009-03-09 - Delete a distribution list_OutlookFolderExist - New 2009-03-12 - Test if a folder exist _OutlookFolderAdd - New 2009-03-12 - Add a folder_OutlookFolderDelete - New 2009-03-12 - Remove a folder_OutlookDeleteXXXX, _OutlookModifyXXXX - Functions to developOutlookWarning.exe renamed to OutlookWarning1.exeOutlookWarningAddress.exe renamed to OutlookWarning2.exeIn _OutlookSendMail there is a parameter for the entire path for OutlookWarning1.exe, it is necessary because of a security feature in Outlook so a program shouldn't be able to send a mail unnoticed. OutlookWarning1.exe automatically press the Yes-button.Compile OutlookWarning1.au3 and put it where you would like to have it.In _OutlookCreateDistList there is a parameter for the entire path for OutlookWarning2.exe, it is necessary because of a security feature in Outlook so a program shouldn't be able to modify addresses unnoticed. OutlookWarning2.exe automatically press the Yes-button.Compile OutlookWarning2.au3 and put it where you would like to have it.More features to come if the community is interested.Attached file: Outlook.zip - 7 Demo files and 3 UDF files1557 downloads until 2010-01-13Outlook.zip Edited March 8, 2011 by Wooltown JiBe 1 Link to comment Share on other sites More sharing options...
Paulchen Posted February 10, 2009 Share Posted February 10, 2009 Thanks for sharing. have you a sample, how I can read the calender form other persons? Link to comment Share on other sites More sharing options...
Wooltown Posted February 10, 2009 Author Share Posted February 10, 2009 Calendar functions is under development, in the next release there won't be the functionality to read other peoples calendar. I will look into it and see how to do it, but of course you must have the rights in the exchange server to read the other person's calendar Link to comment Share on other sites More sharing options...
Wooltown Posted February 11, 2009 Author Share Posted February 11, 2009 Updated with new function: _OutlookCreateAppointment - Create a Calendar event Link to comment Share on other sites More sharing options...
enaiman Posted February 11, 2009 Share Posted February 11, 2009 Very good job I'm sure it will come in handy in the future. Thanks for sharing it. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
skylee Posted February 12, 2009 Share Posted February 12, 2009 Thank you for sharing... Link to comment Share on other sites More sharing options...
rosscoe43 Posted February 12, 2009 Share Posted February 12, 2009 I'll be testing this tomorrow, it would be a great addition to a utility I wrote and thanks. Link to comment Share on other sites More sharing options...
robilev Posted February 12, 2009 Share Posted February 12, 2009 Hi, Is there a way to change an appointment time Link to comment Share on other sites More sharing options...
Wooltown Posted February 12, 2009 Author Share Posted February 12, 2009 I will look into it in coming updates, next update is Contacts and will be released during the day. Link to comment Share on other sites More sharing options...
timgames Posted February 12, 2009 Share Posted February 12, 2009 Add a function that will backup your emails and restore them it would be quite handy because I switch OS a lot. Link to comment Share on other sites More sharing options...
Wooltown Posted February 18, 2009 Author Share Posted February 18, 2009 _OutlookCreateDistList addded - Create Distribution Lists and members ! Working on modify of Appointments in Calendar, a little bit problems with recurring events, when I'm trying to modify a single occurence. Link to comment Share on other sites More sharing options...
Wooltown Posted February 24, 2009 Author Share Posted February 24, 2009 _OutlookModifyAppointment - New 2009-02-24 - Modify single or recurring events, at the moment, changing a single event in a recurring appointment doesn't work _OutlookGetAppointments - New 2009-02-24 - Get all Appointmennts with specific criteria Look in Outlook.au3 for parameters for each function Link to comment Share on other sites More sharing options...
enaiman Posted February 24, 2009 Share Posted February 24, 2009 Nice job Thank you. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Wooltown Posted February 26, 2009 Author Share Posted February 26, 2009 (edited) New function: _OutlookGetMail - New 2009-02-26- Get an array of all mails in a folder with or without the subfolders. Edited February 26, 2009 by Wooltown Link to comment Share on other sites More sharing options...
Wooltown Posted February 27, 2009 Author Share Posted February 27, 2009 New function: _OutlookSaveMail - New 2009-02-27 - Save a mail and it's attachments to the hard disk OutLookWarning1.au3 - updated 2009-02-27 OutLookWarning2.au3 - updated 2009-02-27 Link to comment Share on other sites More sharing options...
Kris123 Posted February 27, 2009 Share Posted February 27, 2009 New function: _OutlookSaveMail - New 2009-02-27 - Save a mail and it's attachments to the hard diskOutLookWarning1.au3 - updated 2009-02-27 OutLookWarning2.au3 - updated 2009-02-27Hi Wooltown,Thanks for ur wonderfull effort, by posting these usefull scripts.I am trying to use your scripts in my Scripts, by calling your _OutlookSendMail(.....) function with the appropriate parameters.When i place my parametrs in ur script named Outlook Demo its working fine but when i call from my script then its giving RUN TIME error "C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\AUTO IT\GUI-Inventory\GUI-Inventory-Sending Mail1.au3" I am not able to locate the problem, Can u help me giving me tips for this problem.I have added all the header files required.Please help me...Thanks in Advance.. Link to comment Share on other sites More sharing options...
Wooltown Posted February 27, 2009 Author Share Posted February 27, 2009 Hi ! Not much information regarding the error, but these 3 lines is necessary to send an e-mail, do you have the right path for the include and have you run the -- $oOutlook = _OutlookOpen() -- this is necessary for having an object the other functions can refer to ? #Include "V:\Source Code\Outlook\Outlook.au3" $oOutlook = _OutlookOpen() _OutlookSendMail($oOutlook, "name@domain.com","","", "Header", "The Body Rich Text","c:\temp\xx.txt;c:\temp\aa.txt;c:\temp\bb.txt;c:\temp\cc.txt",$olFormatRichText,"","V:\Source code\Outlook\OutlookWarning1.exe") Link to comment Share on other sites More sharing options...
Kris123 Posted February 27, 2009 Share Posted February 27, 2009 Hi !Not much information regarding the error, but these 3 lines is necessary to send an e-mail, do you have the right path for the include and have you run the -- $oOutlook = _OutlookOpen() -- this is necessary for having an object the other functions can refer to ?#Include "V:\Source Code\Outlook\Outlook.au3"$oOutlook = _OutlookOpen()_OutlookSendMail($oOutlook, "name@domain.com","","", "Header", "The Body Rich Text","c:\temp\xx.txt;c:\temp\aa.txt;c:\temp\bb.txt;c:\temp\cc.txt",$olFormatRichText,"","V:\Source code\Outlook\OutlookWarning1.exe")Thanks for your time Wooltown...I have resolved that issue...Regards Link to comment Share on other sites More sharing options...
Wooltown Posted March 2, 2009 Author Share Posted March 2, 2009 New function: _OutlookDeleteMail - 2009-03-02 - Delete one or more mail from a folder in Outlook Link to comment Share on other sites More sharing options...
Wooltown Posted March 4, 2009 Author Share Posted March 4, 2009 New functions added: _OutlookGetTasks - New 2009-03-04 - Get an array of all Tasks _OutlookGetNotes - New 2009-03-04 - Get an array of all Notes _OutlookGetContacts - New 2009-03-04 - Get an array of all Contacts 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