OLE Automation + Sending Mails
From: Jan Janssen (clijsters_at_skynet.be)
Date: 02/18/04
- Next message: YG Lim: "Edit Component with WordWrap and Auto Vertical Expansion"
- Previous message: Lauchlan M: "Re: Good HD disk space use analyser?"
- Next in thread: Lars Black: "Re: OLE Automation + Sending Mails"
- Reply: Lars Black: "Re: OLE Automation + Sending Mails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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;
- Next message: YG Lim: "Edit Component with WordWrap and Auto Vertical Expansion"
- Previous message: Lauchlan M: "Re: Good HD disk space use analyser?"
- Next in thread: Lars Black: "Re: OLE Automation + Sending Mails"
- Reply: Lars Black: "Re: OLE Automation + Sending Mails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]