Sending Email from TadxOlForm

Add-in Express™ Support Service
That's what is more important than anything else

Sending Email from TadxOlForm
 
Michael Petersen




Posts: 1
Joined: 2011-02-03
Hi

I am developing a Outlook plugin that will manage contact data from a number of databases and displays on one or more forms in Outlook. One of the requirements is the ability to intiate (start and display ) an email displayed in a dbgrid on a TadxOlForm. I have the information displaying but have been unsuccessful in sending an email. I have attempt to access the Outlook & OutLookApp instances , acessible from the TadsAddin module, but not on the TadxOlForm. Please note that I started with the OutLookExtendingAddin sample app.

Any guidance on a direction to take would be greatly appreciated.
Posted 03 Feb, 2011 16:02:17 Top
Fedor Shihantsov


Guest


Hi Michael,

You can use the TadxOlForm.OutlookAppObj, ExplorerObj, InspectorObj properties to access the Outlook instances. Also you can use the AddinModule property to interact with TAddinModule.



procedure TadxOlForm2.Button1Click(Sender: TObject);
begin
  ShowMessage('Yes, it works!');
  ShowMessage(Self.OutlookAppObj.Version);
  if (Self.ExplorerObj <> nil) then begin
    ShowMessage(Self.ExplorerObj.Caption);
  end;
  if (Self.InspectorObj <> nil) then begin
    ShowMessage(Self.InspectorObj.Caption);
  end;
  ShowMessage((Self.AddinModule as TAddInModule).TestMessage());
end;
Posted 04 Feb, 2011 04:08:07 Top