Outlook Automation

Hi All,

Im using Microsoft Outlook 12.0 Object Library to send mails with meeting request.I need to send to three persons .Im using the following code

CREATE(glautapp);
glautappint:=glautapp.CreateItem(1);
glautappint.Subject:=‘Call Letter’;
glautappint.RequiredAttendees(“Email Id”);
glautappint.OptionalAttendees(“Person Incharge Email Id”) ;
glautappint.OptionalAttendees(" Incharge Email Id") ;
glautappint.Location:=Location;
glautappint.Start:=DATI2VARIANT(“Interview Date”,“Start Time”);
//glautappint.End:=“End Time”;
glautappint.Body:=loctxtbody;
glautappint.Display();

Using this code im able to send to only 2 persons ,how to send to 3rd person.

Another problem im facing is with end time.Please suggest me where i have gone wrong

Did you try to concat email addresses with a semicolon like abc@def.com;fgh@def.com;me@you.com and assign these to the Attendees property?

Alternatively did you check if there is a method (function) to Add Attendees instead of using the property?

Hi Thomas,

There is no methos to add the attendees.

So i tried the code like this

loctxtto:=“Person Incharge Email Id”+ ‘;’ + “Inter Email Id”+ ‘;’ +“Email Id”;
CREATE(locautapp);
locautappint:=locautapp.CreateItem(1);
locautappint.Subject:=‘Interview Call Letter’;
locautappint.RequiredAttendees(loctxtto);
locautappint.Location:=Location;
locautappint.Start:=DATI2VARIANT(“Interview Date”,“Start Time”);
locautappint.Body:=loctxtbody;
//locautappint.End:=DATI2VARIANT(“Interview Date”,“End Time”);
locautappint.Display();

Is this the correct way to proceed?

Then i dont know wat is wrong with End time.Its showing me error A field from a record variable is excepted.

Please Suggest