OLE Automation + Sending Mails

From: Jan Janssen (clijsters_at_skynet.be)
Date: 02/18/04


Date: Wed, 18 Feb 2004 10:59:09 +0100

Hello,

Is it possible to view a preview of the mail message when you're using OLE
Automation for setting mails. I want to see my mail message that I am going
to send so that the customers can view what they are sending. Is there a way
to do this ???

Here is my Code

  Outlook := CreateOleObject('Outlook.Application');
  NameSpace := Outlook.GetNameSpace('MAPI');
  NameSpace.Logon;
  MailItem := Outlook.CreateItem(0);
  MailItem.Recipients.Add(Recipients);
  MailItem.Subject := Subject;
  MailItem.body := Notes;
  MailItem.Attachments.add(Attachments );
  MailItem.Send;