Jump to content

Recommended Posts

Posted (edited)

This UDF will be superseeded by a new UDF: OutlookEX.UDF, updated by: Water

Check 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 below

Updated: 2009-03-25 - OutlokGetAppointments, returning more values

Updated: 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 develop

OutlookWarning.exe renamed to OutlookWarning1.exe

OutlookWarningAddress.exe renamed to OutlookWarning2.exe

In _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 files

1557 downloads until 2010-01-13

Outlook.zip

Edited by Wooltown
Posted

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

Posted

_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.

Posted

_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

Posted (edited)

New function: _OutlookGetMail - New 2009-02-26- Get an array of all mails in a folder with or without the subfolders.

Edited by Wooltown
Posted

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

Posted

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

Hi 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..

Posted

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")

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...