Outlook Object Model - Detecting if email has been sent
问题 I have the following code in my test Delphi 2006 BDS application: procedure TForm1.Button1Click(Sender: TObject); const olMailItem = 0; var Outlook: OleVariant; vMailItem: variant; begin Outlook := CreateOleObject('Outlook.Application'); vMailItem := Outlook.CreateItem(olMailItem); try vMailItem.Recipients.add('anemailaddress@gmail.com'); vMailItem.Display(True); -- outlook mail message is displayed modally except end; VarClear(Outlook); end; I need to be able to detect whether the user sent