Title: Create meeting request in outlook by delphi using .vcs file
Question: To create meeting request in outlook by a delphi application.
- by sending a .vcs file as attachment
Answer:
Sample source for creating a meeting request in outlook by a delphi applicaiton [using outlook mapi]
steps:
1.create .vcs file on the fly
2.save the file in a temporary folder.
3.send this file as an attachment.
* Make sure that the dates are in 'yyyy-mm-dd' format.
procedure Create_VCSFile;
var
strfile : TStringlist;
begin
with TStringList.Create do
begin
try
Add('BEGIN:VCALENDAR');
Add('VERSION:1.0');
Add('BEGIN:VEVENT');
Add('ORGANIZER:MAILTO:'+'organizer_email_id');
Add('DTStart:'+'2008-07-25');
Add('DTEnd:'+'2008-07-26');
Add('Location;ENCODING=QUOTED-PRINTABLE:'+'Meeting room');
Add('UID:'+'2008-07-09'+'2008-07-10');
Add('SUMMARY:'+'Appointment Reminder');
Add('DESCRIPTION:'+'Test message');
Add('PRIORITY:3');
Add('END:VEVENT');
Add('END:VCALENDAR');
SaveToFile('d:\appmnt.vcs');
finally
Free;
end;
end;
end;
indy components can be used for sending this file as an attachment to the mail.
For creating a meeting request in outlook from delphi, please check
the following url:
http://www.delphi3000.com/articles/article_2776.asp?SK=
(contributed by Mike Shkolnik)